Consider Line 3 of the following C program: int main() { /* Line 1 */ int I,…

PYQ GATE 2005

Consider Line 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 Line 3 while creating the object module.

Assume the ISO C90 language rules applicable to this GATE 2005 item.

  1. A.

    No compilation error

  2. B.

    Only a lexical error

  3. C.

    Only syntactic errors

  4. D.

    Both lexical and syntactic errors

Attempted by 313 students.

Sign up free to check your answer

Sign up free

Explore the full course: Compiler Design

Loading lesson…