Multiple choice

Why are line numbers used while writing the C source code?

  1. To make the code easier to read.

  2. To indicate the start of a new line.

  3. They are not used.

  4. To maintain order of the lines at compile time.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

C source code is a plain text file. Line numbers are not part of the syntax and are not required by the compiler; they are only added by text editors for the convenience of the programmer.