Vidyalelo
C Programming · Q197

Pointer

Programming · C Programming · question 197

Q197

What will be the output of the following C code? #include void m(int *p, int *q) int temp = *p; *p = *q; *q = temp; void main() int a = 6, b = 5; m(&a, &b); printf("%d %d ", a, b);

A.
5 6
Answer
B.
6 5
C.
5 5
D.
6 6

Answer: Option A

Solution

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