A

Admin • 833.24K Points
Coach

Q. What is the default return type of the 'main()' function in C++?

  • (A) void
  • (B) int
  • (C) float
  • (D) char
  • Correct Answer - Option(B)
  • Views: 40
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

In C++, the 'main()' function must return an 'int' value by default.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.