What is the difference function call by value & function
call by reference?
Answer Posted / rahul
In call by value function, the value of the actual
parameters or arguments from calling function is passed on
to the called functions i.e. actual value is copied into the
formal parameters of called function. The arguments passed
may be variables of any data type or constants also.
In call by reference, the address of actual parameters are
passed on to the called functions from calling functions.
So, the values stored in these memory locations can be
altered, which is reflected in calling functions also.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
Can we change the value of constant variable in c?
Apart from dennis ritchie who the other person who contributed in design of c language.
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What is the best way of making my program efficient?
Explain how do you use a pointer to a function?
What are compound statements?
What is scanf_s in c?
What are types of preprocessor in c?
What is difference between structure and union in c?
What are pointers?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is the difference between struct and union in C?
What are dangling pointers in c?
Why pointers are used in c?