C passes By value or By reference?
Answer Posted / red dustbin
C passes only by value. When passing a pointer, the pointer
is passed by value. This is equivalent to passing by
reference but it is the progammer's choice to pass the
pointer instead of the object itself.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is #line?
What is f'n in math?
Where are c variables stored in memory?
What is wrong with this statement? Myname = 'robin';
how do you execute a c program in unix.
What are the types of data structures in c?
What is int main () in c?
What standard functions are available to manipulate strings?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Was 2000 a leap year?
In C language what is a 'dangling pointer'?
What is the value of h?
What is the sizeof () operator?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
Can we change the value of static variable in c?