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
How can I insert or delete a line (or record) in the middle of a file?
Describe the steps to insert data into a singly linked list.
Was 2000 a leap year?
What is calloc in c?
What are logical errors and how does it differ from syntax errors?
How does normalization of huge pointer works?
What are register variables? What are the advantage of using register variables?
Explain what are preprocessor directives?
Why is structure padding done in c?
What are the applications of c language?
When do we get logical errors?
What does a function declared as pascal do differently?
What is difference between Structure and Unions?
Explain what does the function toupper() do?
What is the difference between #include