Declarations | declarations | ||||||||||||||||||||||||||
Variables must be declared before used | |||||||||||||||||||||||||||
Type and name: | |||||||||||||||||||||||||||
int number_of_tacos, number_of_burritos; | |||||||||||||||||||||||||||
float burrito_price; | |||||||||||||||||||||||||||
Note that no value is assigned | |||||||||||||||||||||||||||
Not necessarily stored in order | |||||||||||||||||||||||||||
Located at beginning of function | |||||||||||||||||||||||||||
#include <stdio.h> | |||||||||||||||||||||||||||
main() | |||||||||||||||||||||||||||
{ | |||||||||||||||||||||||||||
int num_tacos; | |||||||||||||||||||||||||||
/* some statements here */ | |||||||||||||||||||||||||||
return 0; | |||||||||||||||||||||||||||
} |
|
|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||