Code:
int main(void) /*Main function*/{
label(); /*Call display function which shows the function of program and name of programmer*/
Car_t fleet[FLEETSZ]; /*Declaring the fleet array */
initializeArray(fleet); /*Calling the fleet initialization function*/
int option = 0;
while(option != 6) /*Displays the program menu*/
43|error: ISO C90 forbids mixed declarations and code [-pedantic]|
45|error: ISO C90 forbids mixed declarations and code [-pedantic]|
Says the line 3 and 5 inside main function has some error. Dont know how to fix this. I need to use ansi c standard.