C | Functions | Question 2

In C, parameters are always
(A) Passed by value
(B) Passed by reference
(C) Non-pointer variables are passed by value and pointers are passed by reference
(D) Passed by value result


Answer: (A)

Explanation: In C, function parameters are always passed by value. Pass-by-reference is simulated in C by explicitly passing pointer values.



My Personal Notes arrow_drop_up


Article Tags :
Practice Tags :


2


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.