int main() { int res; funcAdd(10,20); } int funcAdd(int a,int b) { return a+b; }
In the above program, funcAdd () does not recognize the main thing, because it is defined after main, and there is no declaration at the beginning. If the C compiler performed 2 passes of the program, this should not be a problem, since it will know that the funcAdd () function is defined in the second pass. Does this mean that C is a single-pass compiler? Please clarify my doubts.
source share