V

Vijay Sangwan • 28.62K Points
Instructor II

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: 31
  • Filed under category C++

Explanation by: Vijay Sangwan
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.


Question analytics