Difference between revisions of "C language"

From ScienceZero
Jump to: navigation, search
(Things to remember about the C language if you want to keep sane)
m (Things to remember about the C language if you want to keep sane)
Line 47: Line 47:
  
 
data types
 
data types
 +
type casting
 
subroutines
 
subroutines
 
void
 
void

Revision as of 20:22, 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;
}

while do while if else

& | ^ ~ >> <<

&& ||

== != > < >= <=

+= -=

  • =

/= >>= <<=


data types type casting subroutines void return


pointers

& (unsigned int *)

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

character and on what type of lines is belongs on


include files .c .h included libraries