A

Admin • 833K Points
Coach

Q. Which of the following is the correct syntax to include a header file in C++?

  • (A) #include <iostream>
  • (B) #include [iostream]
  • (C) #include {iostream}
  • (D) #include 'iostream'
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

The correct syntax to include a header file in C++ is #include <header_file>.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.