I have a question. The instructions given from the professor states to do the following:
Declare an array of five elements of type FLIGHT. Write a function that initializes the array(using structures).
My original Structure:
Declare an array of five elemens of type FLIGHT:
I did this in main,
Write a function that initializes the array.
assuming I have written the funtion prototype and I have called the function in main, I wrote the following funtion per these intructions:
int getnum(int flightinfo)
Am I doing this correctly? Wouldn't the initialization only need the first element of the structure?