Difference between revisions of "C language"

From ScienceZero
Jump to: navigation, search
m (Things to remember about the C language if you want to keep sane)
(Things to remember about the C language if you want to keep sane)
Line 56: Line 56:
 
array pointers, 1d, 2d
 
array pointers, 1d, 2d
 
string, terminating character
 
string, terminating character
 +
/n /r /t escape characters

Revision as of 20:08, 22 January 2011

Things to remember about the C language if you want to keep sane

volatile

static

for() direction and signed

switch(var)
{
	case 0:
	//code
	break;
}

& | ^ ~ >> <<

&& ||

== != > < >= <=

+= -=

  • =

/= >>= <<=


data types subroutines void return


pointers

& (unsigned int *)

arrays multiple dimensions array pointers, 1d, 2d string, terminating character /n /r /t escape characters