0

please why is there no ; function after int main () ??

16th Oct 2018, 9:26 PM
olaoluwa
3 Answers
+ 2
you are welcome. you can declare main function before definig it like this: int main(); int main(){ std::cout << "hello"; } but that seems needless and pointless.
16th Oct 2018, 10:12 PM
Tanay
Tanay - avatar
+ 1
because the is {//main function body}
16th Oct 2018, 10:04 PM
Tanay
Tanay - avatar
0
Ok thanks a lot
16th Oct 2018, 10:04 PM
olaoluwa