+ 1
why does this program show returned 1 in error
#include<iostream> using namespace std; int main() { cout << "I love C++" << endl; return 0; }
3 Answers
+ 14
#include<iostream>
using namespace std;
int main() {
cout << "I love C++" << endl;
return 0;
}
//is same as
#include<iostream>
using namespace std;
int main() {
cout << "I love C++" << endl;
return 1;
}
//is same as
#include<iostream>
using namespace std;
int main() {
cout << "I love C++" << endl;
}
Ask your question precisely if any, my friend.
0
so what should i do then?