Yosef Baskin
0
Q:

return 0; c++

return 0;// C++ The return value of the main function is considered the "Exit Status" of the application. On most operating systems returning 0 is a success status like saying "The program worked fine". In C++ it is optional to type " return 0; " at the end of the main function and the compiler includes it automatically
1
// This example gives a reason why you should use using namespace std
#include <iostream>
using namespace std;
cout << "Hello "<<endl; /* this one is shorter*/
// without the using namespace std you will need to use this
std::cout <<"Hello"<<std::cout<<endl /* this one is longer 
and it requires shorter amount of time */
0

New to Communities?

Join the community