Q. Find the output of below program.

Code:
class Mycpp
{
    int Mycpp()
    {
       cout<<"Constructor";
       return 0;
     }
};

int main()
{
    Mycpp obj;
    return 0;
}
  • (A) 0
  • (B) Constructor
  • (C) Runtime Error
  • (D) Compilation Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
222
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate