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
Tell me can the size of an array be declared at runtime?
Can a variable be both constant and volatile?
Explain main function in c?
Why static is used in c?
Why void is used in c?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What is abstract data structure in c?
What is sorting in c plus plus?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is time complexity c?
What are c preprocessors?
Why doesnt long int work?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What are preprocessor directives in c?
What functions are used for dynamic memory allocation in c language?