Question 1 out of 6
What is the output of the following C code? #include <stdio.h> int main() { int x = 10; int *ptr = &x; printf("%d", *ptr); return 0; }
10
The code prints the value of the variable x, which is 10, using the pointer *ptr.
Added to