Find out the errors in the following : int g (void) { printf(“lnside this book” C \n” ); int h (void) { printf(“lnside function h\n”);} }
Answers
Answered by
0
Since the given code is in C, there are going to be two major compile time errors in this code when it's sent for compilation.
1. The first one is the nested function. The function h() has been defined inside the function g(). This type of function declaration is called nesting of functions and functions like h() are called nested functions.
2. The second error is the unclosed double quotes inside the first print statement outside function h which is a syntax error and would be detected during the compilation.
Similar questions
Math,
6 months ago
English,
6 months ago
Math,
6 months ago
English,
1 year ago
Business Studies,
1 year ago