![]() Related Questions Latest Answer : In C++, assignment and copy construction are different because the copy constructor initializes uninitialized memory, whereas assignment starts with an existing initialized object. If your class contains instances of other classes as data members, the ... Latest Answer : Overloading is related to the use of a function or an operator. For example you can use a function for adding some integers as well as floats so this function is overloaded as it works for two different kind of inputs.
Where as overiding is in the case ... Latest Answer : "Postincrement is usually less efficient than preincrement because it has to remember & return its original value"That is, apart from also doing the increment operation, Postincrement has to remember & return its original value.Exceptional ... Latest Answer : Both behave the same way except that when we import in java we can import single class also but we have to include a file and not a Class in C++.eg: import java.lang //you can even go to specific class here ... Latest Answer : Do any operation symbolizing the operator in your class.you can add/subtract/multiply/divide or do any other operation for +operator() the choice is entirely yours.Freedom you see ... Latest Answer : XOR Operator is right. XOR the given bit with 1 if the bit is 1 then 0 is the o/p else 1 is the o/p. ... Latest Answer : Bitwise and - & is the correct answer. n=n & 0177 ... Latest Answer : The bitwise XOR ^ sets a one in each bit position where its operands have different bits and zero where they are same. ... Latest Answer : One's complement ~ ... Latest Answer : Simply by using the pointers to store the actual arguments, and by working on pointers you can actually return the value to the orginal location. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||