CJCoding With Joseph
15per day
← 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