mercredi 3 septembre 2014

Function header/decleration


Vote count:

0




This is my main function and what i am passing.



int main(void){
struct can elC[7]; // Create an array of stucts

Initialize(elC); // initializes the array

return 0;
}

int Initialize(struct can elC[7]){

}


In C don't we have to declare the function before main or something? If so how would it look? My code runs fine with the deleration of



int Initialize();


But dont I need something like



int Initialize(struct can elc[7]);


asked 53 secs ago







Function header/decleration

Aucun commentaire:

Enregistrer un commentaire