Vidyalelo
C Programming · Q253

Pointer

Programming · C Programming · question 253

Q253

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
B.
5 5
C.
6 5
Answer
D.
6 6

Answer: Option C

Solution

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