I have been notified by many that in C, definitions must be right after main() block starts instead of defining right before using. You could also count functions in since function definitions are related to same topic. After doing some search on stackoverflow and web, i could not find the answer to my question or i just could not find the keyword to search.
int main(){ //defining at the beginning of main
int x=0;
.
.
.
function(x);
return 0;
}
OR
int main(){ //defining right before using
.
.
.
int x=0;
function(x);
return 0;
}