Is it good practice to declares variables (and/or functions) within the int main() function? Don't they have to be initialized before they're called, and the initializing takes places outside (and before) the int main() function?
I'm asking because I've seen a few tutorials on this site, that have the code declaring the variables within the int main() function.