[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Basic Concepts - Discussion

Home > C Programming > Basic Concepts > MCQs Questions Discussion

64 / 90

Choose the correct option.

C allows

Aonly call by value

Bonly call by reference

CBoth A & B

Donly call by value and sometimes call by reference

Answer: Option (Login/Signup)

Show Explanation

call by value method of passing arguments to function copies the actual value of the arguments into the formal parameter of the function. In this case, changes made to the parameter inside the function, have no effect on the argument.

On the other hand,

call by reference method of passing arguments copies the address of the argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. It means the changes made to the parameter affect the passed argument.

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here