Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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.
}
 
PREVIOUS NEXT
Tagged: #return #int #main
ADD COMMENT
Topic
Name
1+5 =