INautix C++ paper:

1.cin is an
a.function
b.object
c.class.

2.i con't remember the ques but the ans is Virtual base class

3.What is the use of scope resolution operator?

4.Advantage of inline function?

5.Copy constructor is
ans:call by value.

6.Question on virtual destructor?

7.Template one ques?

8.one q' on container class?

The order above may be different.there are totally 15 questions its very easy to answer.

Rest of the questions are as same as HCL Cisco. You can do that.

Showing Answers 1 - 7 of 7 Answers

1.cin is a function2. 3. You can tell the compiler to use the global identifier rather than the local identifier by prefixing the identifier with ::, the scope resolution operator#include using namespace std;int amount = 123; // A global variableint main() { int amount = 456; // A local variable cout << ::amount << endl // Print the global variable << amount << endl; // Print the local variable}4.In some cases, inline functions make a compute-bound application run faster.5.When an object is passed by value, returned by value, or explicitly copied. Copy Constructor is invoked. Basically It is invoked implicitly by the compiler.6.

  Was this answer useful?  Yes

Abhijit Gore

  • Mar 9th, 2007
 

Person above me is wrong.

Cin is a object of class Istream and operators << are overloaded in istream class enabling user to use the format cin << ......

  Was this answer useful?  Yes

Abhijit Gore

  • Mar 9th, 2007
 

Answer given to question 1 above is wrong.

Cin is a object of class Istream and the operator << is overloaded in the istream class enabling developer to use the format cin <<......

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions