Explain "passing by value", "passing by pointer" and
"passing by reference" ?
Answer Posted / sampurna pandey
i am not agree with Ranjeet, you mention this
main()
{
int i;
func(i); // call by reference
}
but fun(i) is a call by value not call by reference
your code will give compile error.
Ven eample is right.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How can I learn dev c++ programming?
Describe the advantage of an external iterator.
How can you link a c++ program to c functions?
Explain operator overloading.
Can you overload the operator+ for short integers?
What are structures and unions?
Explain selection sorting?
What is #include cstdlib in c++?
How const int *ourpointer differs from int const *ourpointer?
what is a class? Explain with an example.
What is the hardest coding language to learn?
What is a static member?
Describe public access specifiers?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Give an example of run-time polymorphism/virtual functions.