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
Is map thread safe c++?
How would you use the functions sin(), pow(), sqrt()?
What do you mean by enumerated data type?
Explain the scope of resolution operator.
What is the difference between while and do while loop? Explain with examples.
A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.
What do manipulators do?
Explain the advantages of using friend classes.
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is Destructor in C++?
What is rtti in c++?
What do you mean by stack unwinding in c++?
Explain container class.
What is a c++ map?
How would you find out if a linked-list is a cycle or not?