Showing posts with label in. Show all posts
Showing posts with label in. Show all posts

Tuesday, April 8, 2014

Increment and Decrement Operators in C

Increment Operators
  • Symbol ++
  • It is unary operator.
  • It is used to increase the value of variable by 1.
  • It can be used before and after the variable.
  • It can be used with constants and expression .only the variables van is incremented.
  1.  Post-fix increment operator.
  2.  Pre-fix increment operator.

Post-fix increment operator
  • When ++ is follows its operand (variable), it is called post-fix increment operator.
  • Post-fix increase the value of variable after the execution of the statement it first uses the current value of variable in the statement and after the completion of the statement it increases the value by one.

Example:
int a=100,b;
b=a++;
Output
a: 101
b: 100
Decrement Operator

  • Symbol - -
  • It is unary operator.
  • It is use to decrease the value of the variable by one.
  • It can be used before or after the variable name.
  • It cannot be used with constants and expressions. Only the variables can be decremented.

There are two types of decrement operator

  1. Postfix Decrement Operator
  2. Prefix Decrement Operator

Postfix Decrement Operator

  • When - -is follows its operand, it is called postfix decrement operator.
  • In postfix decrement, - - decrease the value of variable after the execution of the statement
  • i.e . It first uses the current value of the variable in the statement and after the completion of the statement it decreases the value by one.

Example:
int a=100,b;
b=a--;
Output
a: 99
b: 100
Postfix Decrement Operator

  • When - - is precedes its operand, it is called prefix decrement, - -decreases the value of the variable before the execution of the statement i.e. it first decreases the current value of the variable by one and then new value is used in the statement.

Example:
int a=100,b;
b=--a;
Output
a: 99
b: 99
Read More..

Saturday, April 5, 2014

Keywords in C

C keywords
  • Keywords are standard word whose meaning has already been explained to the compiler.

  • Keywords are also called "reserved words".

  • There are 32 keywords available in C.








int char long double float break
continue goto void switch case default
short signed unsigned if else for
while auto register static extern do
const enum return sizeof struct typedef
union volatile
Read More..

Monday, March 17, 2014

Why FAT Doesnt Belong In Your Flash Drives

I have been moving all my wifes applications over from her Windows XP desktop to a Windows 7 notebook.  One of the applications that she uses regularly is OpenLP, which is an open source presentation management system intended for church worship services.  We needed to export the song library that she has built over the years.  Some of them songs are not in the default library because they are new; some are there because they are songs that she has written.  OpenLP has an export facility, and it exported in XML format.  When I tried to copy all these XML files to a flash drive, it kept refusing to do so -- complaining that the file or directory name could not be created. 

Okay, I started to see a pattern: filenames with periods in them.  But some did not fit that pattern at all.  However, I was able to copy the files over the network from the desktop to the new notebook without trouble, and then import them into OpenLP.  Why?

I am guessing that it is because FAT32 (which is what the flash drive that I picked up off the coffee table used) has some filename limitation that is generally the case over our network.  I have not tried this on an NTFS flash drive, but I suspect that the problem would go away.

The more time that I spent with this Toshiba Portege R500, the more impressed I am with what a marvelous combination of size and speed it provides.  Compared to a tablet, it is just a little larger, and just a little heavier -- and for $100, it is hard to argue against it.
Read More..

Sunday, March 16, 2014

Shopping in Vietnam Ho Chi Minh and Hanoi



People say that you can buy a lot of things in HCM city in Vietnam - Well, it actually depends on what you want to buy. The most famous market in Ho Chi Minh city is the Ben Thanh Market. It is like the Divisoria (Manila, Ph) of Vietnam! Other than the delicacies and souvenirs unique to Vietnam, it is very similar to Divi -- The narrow aisles, crowded stalls, overflowing class-A or overrun products and a much humid climate! Ben Thanh is unique in several other ways though. It is divided into several sections like dry goods, textiles, local cuisine and souvenirs including the áo dài. Reminder: When in Ben Thanh, do wear comfortable clothes and bring a lot of patience with you as this is a big big place with heaps of tourists and a mix of locals visiting everyday.

Read more »
Read More..

Monday, March 10, 2014

GG INFINITE P Bandai Online Hobby Shop Exclusive Gunplas Now In Stock! Updated 2 6 14

GG INFINITE: P-Bandai Online Hobby Shop Exclusive Gunplas - Now In Stock!



P-Bandai Online Hobby Shop Exclusive: MG 1/100 Gundam Astray Noir - 1st batch arrived!
*** All pre-orders made before Jan 29th 2014 will be fulfilled with this 1st Batch Shipment ***
GG INFINITE: ORDER HERE

P-Bandai Online Hobby Shop Exclusive: MG 1/100 Gundam Astray Red Frame
*** Only a few available left for pre-order ***
GG INFINITE: ORDER HERE 

P-Bandai Hobby Online Shop Exclusive: HG 1/144 Astray Gold Frame
*** Only a few available left for pre-order ***
GG INFINITE: ORDER HERE 

P-Bandai Online Hobby Shop Exclusive: HGUC 1/144 AMX-107R Rebawoo - 2nd Batch Arrived!
*** All pre-orders made before Jan 30th 2014 will be fulfilled with this 2nd Batch Shipment ***
GG INFINITE: ORDER HERE 





Read More..

Saturday, March 1, 2014

Edit in place

Read More..