What is call by reference in functions?

Answer Posted / hrpynux@gmail.com

The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. ... It means the changes made to the parameter affect the passed argument. To pass a value by reference, argument pointers are passed to the functions just like any other value.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pragma in c?

636


Why enum is used in c?

535


What do you mean by dynamic memory allocation in c?

656


What is the difference between the local variable and global variable in c?

537


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

651






When should you use a type cast?

597


Explain the use of keyword 'register' with respect to variables.

596


Explain function?

667


What is the general form of function in c?

618


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1936


What is assignment operator?

630


Explain what is output redirection?

672


Can the curly brackets { } be used to enclose a single line of code?

719


Is null always equal to 0(zero)?

591


What is a char c?

599