Question 56

Computer Awareness Data Structure Easy

Consider the following function implemented in C \[\] void test_fun(int x, int y) { \[\]int *p; \[\]x=0;\[\] p=&x; \[\]y=*p;\[\] *p=1;\[\] printf("%d,%d", x, y); \[\]} \[\] The output of invoking test_fun(10,10) is

(A) 0,0
(B) 1,0
(C) 0,1
(D) 1,1
View Dynamic Solution & Explanation
Correct Solution: Option B

Step-by-step Solution:

The function will print: 1,0 Correct Option: (b)