Multiple choice

In general (other than writing constants like 'Hello world' and a few obscure constructs) what effect does the amount of white space (space and tabs) between code elements have a C program's compiled output?

  1. Spaces are ignored and tabs have meanings.

  2. Both spaces and tabs have meanings

  3. Tabs are ignored and spaces have meaning

  4. Both spaces and tabs are ignored.

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

C is a free-form language. Aside from within string literals or character constants, the compiler ignores whitespace, including spaces, tabs, and newlines, treating them as separators.