I was looking through someone’s code one day and I was annoyed how they declared all their functions first and then later called them below. I guess I’m use to Visual Studio’s automatically generated functions, that are made after you call them- and I was wondering, which way do you prefer? Or is there a standard on these kind of things?
Share
I’m not sure what you mean by this. In C and C++, a function must be declared before it is called, otherwise the compiler won’t know how to verify your arguments and return values.