Vidyalelo
C Programming · Q237

Pointer

Programming · C Programming · question 237

Q237

What will be the output of the following C code? #include int main() int *ptr, a = 10; ptr = &a; *ptr += 1; printf("%d,%d/n", *ptr, a);

A.
10,10
B.
10,11
C.
11,10
D.
11,11
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board