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
Ow can I insert or delete a line (or record) in the middle of a file?
Are the outer parentheses in return statements really optional?
in linking some of os executables are linking name some of them
What is c token?
How can I write functions that take a variable number of arguments?
what type of questions arrive in interview over c programming?
Why should I prototype a function?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is the purpose of the preprocessor directive error?
What are the types of c language?
Where we use clrscr in c?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.