int
, float
, char
short int
(short
),
long int
(long
),
double
+
,-
,*
,/
,%
,
==
,!=
,<
,<=
,>
,>=
int myArray[20];
int myArray[]
int my2DArray[4][20];
myArray[i] == *(myArray + i)
int myArray[] == int * myArray
typedef struct tagName { char c; int i; float f; struct tagName * next; } Type1; typedef union tagName { char c; int i; float f; struct tagName * next; } Type2;
<<
,
>>
,
&
,
|
,
~
bool
, for one==
, !=
,
&&
, ||
,
!
int array2D_a[3][5]; int array0[5] = { 1, 2, 3, 4, 5}; int array1[7] = { 1, 2, 3, 4, 5, 6, 7}; int array2[5] = { 1, 2, 3, 4, 5}; int array2D_b[3]; array2D_b[0] = array0; array2D_b[1] = array1; array2D_b[2] = array2; array2D_a[1][4] = 42; array2D_b[1][4] = 42; array2D_b[1][6] = 13; array2D_a[1][6] = 83;