djfish's studio

2/17/2009

variables

DATA TYPE
1. the difference between 'char' and 'int' is that the compiler will reserve int-size memorry locations for the variable.
2.'char' is the smallest size of the data type.
3.number systems:Octal values are preceded by '0',Hex values are preceded by '0x'
4.escape sequences, use backslash character \ followed by a letter.
\n :newline(ie.,linefeed - carriage return)
\t :tab
\b :backspace
\r :carriage return
\\ :backslash
\' :single quote.
numerical escape sequences,example belll='\007'
STORAGE CLASSES
1.automatic variables,'auto' scope in limited to the block in variables declared inside functions are always automatic unless otherwise specified.
automatic variables are local to the block in which they are delare,even when that block is nested within another block.

No comments:

Post a Comment