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
What do you mean by vtable and vptr in c++?
What is class invariant in c++?
What is c++ vb?
Explain what is oop?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
What are literals in C++?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What is the use of typedef? How do you decide which integer type to use? Is python better than c++? Difference between a homogeneous and a heterogeneous container How can you quickly find the number of elements stored in a static array? Describe protected access specifiers? What is the meaning of string in c++? How do I tokenize a string in c++?