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 is the examination pattern?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What are the types of pointers in c?
Describe explain how arrays can be passed to a user defined function
What is scope of variable in c?
What is union and structure in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What are the application of void data type in c?
What are the rules for identifiers in c?
What is a string?
Can i use “int” data type to store the value 32768? Why?
Explain Basic concepts of C language?
Explain what standard functions are available to manipulate strings?
Difference between constant pointer and pointer to a constant.
difference between native and cross compilers