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
Describe linkages and types of linkages?
What do you mean by inheritance in c++?
What is while loops?
Array base access faster or pointer base access is faster?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is a tuple c++?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What is algorithm in c++ programming? What is the difference between ++ count and count ++? What does new in c++ do? What parameter does the constructor to an ofstream object take? Which programming language is best to learn first? What is difference between class and function? What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator? What are proxy objects in c++?