what is the differance between pass by reference and pass
by value.
Answer Posted / shalini
In the pass by reference we are using the pointer that is
here, we are passing only address where value is stored. but
in the case pass by value we are using ordinary variable
that is pass the value itself. here the value cannot be
changed in calling function and returning back to called
function but this is possible in call by reference
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
When should a type cast be used?
Explain a file operation in C with an example.
Which function in C can be used to append a string to another string?
Are c and c++ the same?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
What is signed and unsigned?
How pointer is different from array?
What are types of structure?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is define directive?
How do you generate random numbers in C?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is variable in c example?
What is calloc in c?
What is variables in c?