Multiple choice

What does the following C++ statement do? extern int a;

  1. Declaration of variable 'a' without definition

  2. Definition of variable 'a'

  3. Declaration and definition of variable 'a'

  4. Declaration of function pointer 'a'

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

Extern is used for declaring and not defining.