CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Pointer Output

C quiz · Question 3
mediumVariables

What is the output of this code?

Code

1#include <stdio.h>
2 
3int main() {
4 int x = 10;
5 int *p = &x;
6 *p = 20;
7 printf("%d\n", x);
8 return 0;
9}