Open In App

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.
 

Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :