Dayrvia
C

C · Addresses and dereferencing · Practice questions

Try 2 questions on C · Addresses and dereferencing, 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 What is n after the final line?
int n = 3;
int *p = &n;
*p = 8;
Q2 Which call updates x?
void set(int *p) { *p = 12; }
int x = 3;
Original practice questions written for Dayrvia.