+ 1

How can you print Hello world in c++ without ;

You are not allowed to use terminator along with statement. It was my first interview!!!

19th Apr 2019, 11:29 AM
Muhammad Kaleem Ullah
Muhammad Kaleem Ullah - avatar
4 Answers
+ 1
#include<stdio.h> int main() { if(printf("hello world")) {} return 0; }
25th Apr 2019, 5:07 PM
Muhammad Kaleem Ullah
Muhammad Kaleem Ullah - avatar
+ 2
You can't
19th Apr 2019, 2:06 PM
Alexander Velinov
Alexander Velinov - avatar
0
Aleksandar Velinov no dear we can!!!
23rd Apr 2019, 5:40 PM
Muhammad Kaleem Ullah
Muhammad Kaleem Ullah - avatar
0
You use it for "return 0;"...
27th Apr 2019, 11:22 AM
Alexander Velinov
Alexander Velinov - avatar