M Mỹ An New member Sep 18, 2021 #1 What will be the output of the following C++ code? Code: #include <iostream> int main(int argc, char const *argv[]) { cout<<"Hello World"; return 0; } A. Hello World B. Compile-time error C. Run-time error D. Segmentation fault
What will be the output of the following C++ code? Code: #include <iostream> int main(int argc, char const *argv[]) { cout<<"Hello World"; return 0; } A. Hello World B. Compile-time error C. Run-time error D. Segmentation fault
T Trang Mắm New member Sep 18, 2021 #2 Answer: b Explanation: cout is defined under the namespace std and without including std namespace we cannot cout, therefore, the program gives an error. Upvote 0 Downvote
Answer: b Explanation: cout is defined under the namespace std and without including std namespace we cannot cout, therefore, the program gives an error.