+ 1

How to print Hellow World without using any semi colon

int main () { if ( cout <<"Hello world"; ) } https://code.sololearn.com/cnx14ATqG52S/?ref=app

22nd Dec 2017, 8:29 AM
Hassan Ashiq
Hassan Ashiq - avatar
6 Answers
0
i have already given the answer just see the attach code
22nd Dec 2017, 1:07 PM
Hassan Ashiq
Hassan Ashiq - avatar
22nd Dec 2017, 9:04 AM
Dima Makieiev
Dima Makieiev - avatar
+ 2
that's not possible semicolon is used for closing the process .
22nd Dec 2017, 8:43 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar
22nd Dec 2017, 8:47 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar
+ 2
@Ethan, try Hassans code, it works, without ; It is a trick of course and not recommended I guess.
22nd Dec 2017, 9:16 AM
Paul
Paul - avatar
+ 1
really
22nd Dec 2017, 9:16 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar