LearnFrenzy
Sign in Take a free test

Declarations and Initializations · Exercise 1 of 4

Declarations and Initializations Declarations MCQ

  • 12 questions
  • Page 2 of 2
  • Answers explained
0Attempted
0Correct
0Wrong
Directions

Twelve multiple-choice questions on declaration vs definition, extern and prototypes, linkage, identifier rules, literal types, initializers, volatile and C23. Pick an option to check your answer instantly.

Question 11 Medium

What does volatile int status; tell the compiler?

A status cannot change
B status may change outside the program's control, so every access must actually read or write memory
C status is stored in a register
D status is shared safely between threads
Question page & discussion
Question 12 Medium

Which statement about C23's nullptr is true?

A It is a macro for 0
B It is a null pointer constant with its own type, nullptr_t, that converts to any pointer type
C It is an integer constant
D It replaces NULL in all older code automatically
Question page & discussion
Up next · Exercise 2Predict the Output12 questions

Ready to test your Programming?

Timed online tests with instant scores and explanations.

Search LearnFrenzy

Esc

Quick links