what is the difference between call by value and call by
reference?

Answer Posted / vijay r15

call by value means passing the value of variable.
Ex fun(a,b)

Call by ref means passing the address of the variable.
Ex fun(&a,&b)

By
Vijay r15
raj.vijay55@gmail.com

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class c rental property?

620


Explain modulus operator.

601


What is meant by keywords in c?

620


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

840


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

636






What is calloc()?

633


What is extern keyword in c?

648


Is stack a keyword in c?

640


What is a const pointer?

640


What is optimization in c?

572


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

741


Explain what will the preprocessor do for a program?

607


Explain how can you restore a redirected standard stream?

594


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

758


Write a program to print numbers from 1 to 100 without using loop in c?

644