Question about function prototypes
I am doing some home work for class and we are learing about pointers.
anyhow I was keying in a example program from the book. and I noticed
that it defined a function prototype before main and then in that function
it defined another function prototype. I compiled and ran the program fine.
My Question is I thought you are supposed to define all your functions before main
and not in another function. or am I wrong and the fact that they define it in a function
just makes it a local function and not a global one?