Compiler-Design
November 14, 2023Question 7966 – Compilers
November 14, 2023Question 9459 – Compilers
Consider line number 3 of the following C-program.
int main ( ) { /* Line 1 */ int I, N; /* Line 2 */ fro (I = 0, I < N, I++); /* Line 3 */ }
Identify the compiler’s response about this line while creating the object-module:
Correct Answer: A
Question 3 Explanation:
There is no error in the above code. Actually it is a link error. Here compiler fro is a function which is not declared. Hence, it will not produce any error. It will only throw a warning in C.
No compilation error
Only a lexical error
Only syntactic errors
Both lexical and syntactic errors
Subscribe
Login
0 Comments