C syntax
- case-sensitive
- lines
- statements end with semicolon (
;)
/* comments like so */ - blocks
- either a statement, or
delimited with curly braces (
{}) - basic types
char, short, int, long
unsigned
float,double,long double
enum, (like FORTRANparameter)
void(a non-type: see uses ofvoid)- lvalues
- an expression referring to an object
- operators
-
arithmetic * / % + -increment/decrement ++ --pointer/array * & -> . []logical && || !comparison == != < <= > >=bitwise & | ^ ~ << >>assignment = += -= *= /= %= &= ^= |= <<= >>=typecast (type)sizeofconditional ?:comma , - storage specifiers
static, extern- structure declaration
struct- type definition
typedef- type qualifier
const