+ 1
#include <iostream> using namespace std; void printSomething(int x) { cout << x; } int main() { printSomething(42); }
4 Antworten
+ 5
Ariela There are no problems omitting the return statement for the main function.
+ 3
Whats the question?
And you have to add return 0; at the end of your main() method
+ 2
ok
+ 2
the IDE adds it I think. invariably, it is needed to terminate the begin prompt.