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