What is the difference between call by value and call by reference in c?



What is the difference between call by value and call by reference in c?..

Answer / Mahendra Nath

'Call by value' means that the function receives a copy of the argument, whereas 'call by reference' involves passing the address of the argument to the function. In call by value, if the function modifies the argument, the original value remains unchanged, but in call by reference, any changes made within the function are reflected in the original variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

how to use enum datatype?Please explain me?

3 Answers   Excel,


What is the significance of an algorithm to C programming?

1 Answers  


Is multithreading possible in c?

1 Answers  


Define recursion in c.

1 Answers  


Explain the difference between call by value and call by reference in c language?

1 Answers  


What is the meaning of typedef struct in c?

1 Answers  


What are the various types of control structures in programming?

1 Answers  


how do you programme Carrier Sense Multiple Access

1 Answers  


How do you search data in a data file using random access method?

1 Answers  


What are disadvantages of C language.

1 Answers   iNautix,


What is function what are the types of function?

1 Answers  


What does the error 'Null Pointer Assignment' mean and what causes this error?

1 Answers   TISL,


Categories