🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Storage Classes in C: all 15 questions

Quiz: Storage Classes in C · Question 5 of 15

Which of these will NOT compile?

Which of these will NOT compile?

  1. A.static int a = 10;
  2. B.int b; register int c = 3;
  3. C.register int r = 5; int *p = &r;
  4. D.extern int d;
Answer & explanation

Correct answer: register int r = 5; int *p = &r;

You cannot take the address of a register variable.

Can you get the rest right without peeking?

Take the timed Quiz: Storage Classes in C quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →