

McqMate
Q. |
If a function is declared as void fn(int *p), then which of the following statements is valid to call function fn? |
A. | fn(x) where x is defined as int x; |
B. | fn(x) where x is defined as int *x; |
C. | fn(&x) where x is defined as int *x; |
D. | fn(*x) where x is defined as int *x; |
Answer» B. fn(x) where x is defined as int *x; |
View all MCQs in
Data Structure and Algorithms (DSA)No comments yet