LearnFrenzy
Sign in Take a free test

Pointers · Exercise 1 of 4

Pointers Pointer Basics MCQ

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

Twelve multiple-choice questions on what pointers are, the & and * operators, NULL, void and const pointers. Pick an option to check your answer instantly.

Question 11 Medium

Which declaration lets you point p at another variable but not change the value through p?

A int *const p
B const int *p
C const int *const p
D int const *const p
Question page & discussion
Question 12 Easy

How does a C function change a variable that belongs to its caller?

A By declaring the variable global inside the function
B By receiving the variable's address and writing through the pointer
C By returning the variable with the & operator
D C cannot do this
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