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
Explain what is the difference between a string and an array?
Which is the memory area not included in C program? give the reason
Why & is used in scanf in c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Is c# a good language?
write a program to print data of 5 five students with structures?
Explain what is the difference between functions getch() and getche()?
define string ?
Are bit fields portable?
Which function in C can be used to append a string to another string?
Why do we use main function?
What are the back slash character constants or escape sequence charactersavailable in c?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
How many types of sorting are there in c?
What are the complete rules for header file searching?