Hi All,
This may be a stupid question, so stupid answers are expected... ;)
Coming from Pascal, where the order of the code mattered, as in you could not call a function that was physically below where you were in the code, as the compiler didn't know it existed yet.
Coming from Pascal, where the order of the code mattered, as in you cou not call a function that was physically below where you were in the cod the compiler didn't know it existed yet.
No, in C you have a .h file where you can predefine your future
functions.
Coming from Pascal, where the order of the code mattered, as in you could n BP>call a function that was physically below where you were in the code, as th BP>compiler didn't know it existed yet.
Is this also a concern with C?
In C and C++, you can declare the function prototype before defining it. Usually the header files (*.h) contain the function prototypes that you expect to use. These can be defined elsewhere and the linker handles putting them all together after compilation.
This may be a stupid question, so stupid answers are expected... ;)
Coming from Pascal, where the order of the code mattered, as in you
could not call a function that was physically below where you were in
the code, as the compiler didn't know it existed yet.
Is this also a concern with C?
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 229:17:58 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,127 |
D/L today: |
21 files (2,409K bytes) |
Messages: | 275,326 |