Declaring Variables in C

Before you use a variable in a C program you must declare it. The tradition in C is to declare all variables using lower case and to use the underscore as the separator.

int num_of_hours;

float rate_of_pay;

double ytd_tot_gross, ytd_tot_fedwh, ytd_tot_statewh;

double ytd_tot_gross = 0;