Dayrvia
C

C · Pointer constness · Practice questions

Try 2 questions on C · Pointer constness, then read the explanations and review the related concepts.

Practice questions

Choose an answer and move to the next question. Grade the last one to see explanations and review links.

2 questions
Q1 Which statement is allowed?
int a = 1, b = 2;
const int *p = &a;
Q2 Which assignment is allowed?
int x = 5, y = 9;
int *const p = &x;
Original practice questions written for Dayrvia.