C passes By value or By reference?
Answer Posted / ravi chandra
pass by value means passing values to the function
values means numericals
and pass by reference means passing addresses of the values..
fun(int a ,int b ) //pass by value
fun(int *a,int *b)// pass by reference
pass by reference
fun(int &a,int &b)
{
}
fun(int *c,int *d) // *c=*(&a) ,*d=*(&b)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is c language still used?
How does #define work?
Is main an identifier in c?
Why is c still so popular?
What is the purpose of ftell?
What is the difference between procedural and functional programming?
what is the difference between 123 and 0123 in c?
What is a double c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
Explain what is the purpose of "extern" keyword in a function declaration?
write a c program to find the sum of five entered numbers using an array named number
Can we access array using pointer in c language?
How can I manipulate strings of multibyte characters?
Write a progarm to find the length of string using switch case?
What is assert and when would I use it?