Answers for "why return 0 in int main"

C++
0

why return 0 in int main

//So return 0 just give command to compiler that here code end ...
int main()
{
    cout<<"Yes";//->this will print as its before return 0 written.
    return 0;
    cout<<"Nope";//->this will not print as its after return 0 written.
}
Posted by: Guest on February-24-2021

Browse Popular Code Answers by Language