Answer Posted / sachin magdum
1. "assigning" - don't use this word, it should be
initializing an object using another object of same type
2. When the object is passed to function - "by value"
3. when a function returns the object type - "by value"
here doesn't matter if you are assigning that returned
value to to another object or not.
Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
What is c++ prototype?
Explain the different access specifiers for the class member in c++.
Why c++ is created?
How the programmer of a class should decide whether to declare member function or a friend function?
What is a stack? How it can be implemented?
Which software is used to run c++ program?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Please explain the reference variable in c++?
What's the "software peter principleā?
What is else syntax in c++?
what is a class? Explain with an example.
which operator is used for performing an exponential operation a) > b) ^ c) none
We use library functions in the program, in what form they are provided to the program?
Is turbo c++ free?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.