Point out the errors, if any, in the following program void main(){int a=30;f();}void f(){int b=20;}
Answers
Answered by
0
Assuming that the program is written for C programming language: Syntactically, the program is correct.
This means that there won't be any compile time errors in the code as such.
But, the entire program seems to be redundant and hence lacks a purpose.
The program will execute without taking any input or giving any output.
It's a good practice to include at least studio header file which provides Standard Input Output in your program.
Similar questions