Multiple choice c

The variables in C programming language:

  1. Must be declared before being used.

  2. Can be used without declaration

  3. Can be used before declaration

  4. none of the above

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

In C (specifically C89/90 and generally), variables must be declared before use. Modern C (C99) allows mixed declarations, but generally one cannot use a variable before it exists.