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
✓ Correct Answer: Option B Verified Solution

📘 Step-by-Step Solution & Detailed Explanation:

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

Practice Similar Data Structure Questions

Reinforce your conceptual grasp with related questions from CUET-MCA 2021:

Q35 Which of the following standard algorithms is not a greedy algorithm?
Solve →
Q54 Which of these operators is used to allocate memory to array variable in...
Solve →
Q66 What happens if the following program is executed in C and C++? \[\]int...
Solve →
Q69 What is the output of this C code? \[\]void main() \[\]int x = 18;...
Solve →
Q73 The minimum number of functions should be present in a ( C++ ) program for...
Solve →
Full-Length Test Series

Prepare for CUET-MCA Under Real Exam Conditions

Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.

Start Free Mock Test Series →