← 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?
- A.static int a = 10;
- B.int b; register int c = 3;
- C.register int r = 5; int *p = &r;
- 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 →