next up previous
Next: September 20 Up: September lecture summary Previous: Pointers


September 18

C has a rather small set of data types:

How much precision? This is specified in the header <float.h> for the particular machine you are on.

Variables are declared before use. The declaration statement may include initialization:

int i, num, k= 3;
char a= 'T', *cp;
int *ip= &k;

num= k+3;
cp= &a;
A declaration may have the prefix const, which which case warnings (may) occur if there is an attempt to change its value after it is initialized.


next up previous
Next: September 20 Up: September lecture summary Previous: Pointers
Danny Heap 2002-12-16