Dayrvia
C

C · Increment operators · Practice questions

Try 2 questions on C · Increment operators, 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 are a[0] and *p now?
int a[] = {2, 7};
int *p = a;
(*p)++;
Q2 What are old and *p in the next statement?
int a[] = {6, 10};
int *p = a;
int old = *p++;
Original practice questions written for Dayrvia.