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
Is it possible for the objects to read and write themselves?
What is the c++ programming language used for?
Mention the purpose of istream class?
What is the use of string in c++?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What is a base class?
Why c++ is better than c language?
Differentiate between C and C++.
What are pointers used for c++?
Will rust take over c++?
What is the difference between a reference and a pointer?
What is different in C++, compare with unix?
what are the iterator and generic algorithms.
What are references in c++?
Which programming language's unsatisfactory performance led to the discovery of c++?