Question discussion

Choose the statement that are syntactically incorrect in C language.

2916Hard DSSSB TGT Computer Science 0 replies 2 views
0

Choose the statement that are syntactically incorrect in C language.

  • Afor(; ;);
  • B/*this is/*a valid */comment */
  • Creturn 5;
  • Dreturn (6+3);
Correct answer: B

Explanation

Comments do not nest, so the comment ends at the first */ and the trailing 'comment */' is a syntax error.

Discussion 0

Nobody has replied yet. Start the discussion!