What should main() return in c and c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the cout in c++?

0 Answers  


What is the difference between global variables and local variable

0 Answers  


class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData

2 Answers   Quark,


Explain the difference between abstract class and interface in c++?

0 Answers  


What is the need of a destructor? Explain with the help of an example.

0 Answers  






What is class invariant in c++?

0 Answers  


What is a linked list in c++?

0 Answers  


Is atoi safe?

0 Answers  


What do you mean by volatile and mutable keywords used in c++?

0 Answers  


What is the sequence of destruction of local objects?

0 Answers  


What are c++ manipulators?

0 Answers  


What is the difference between equal to (==) and assignment operator (=)?

0 Answers  


Categories