CJCoding With Joseph
15free / daySign inCreate account
โ† Back to Question List
C Code Walkthrough #2

Pointer Dereferencing

mediumArrays

๐Ÿ“„ Code

Read carefully โ€” what does this print?
1#include <stdio.h>
2 
3int main() {
4 int x = 42;
5 int *p = &x;
6 *p = 100;
7 printf("%d\n", x);
8 printf("%d\n", *p);
9 return 0;
10}

๐ŸŽฏ Your Answer