0

How we can print hello without use of semicolon in the programme?

7th Jan 2017, 3:32 AM
Balwant Singh
Balwant Singh - avatar
3 Answers
+ 2
#include <iostream> using namespace std; int main() { if(cout<<"hello" ) return 0; }
7th Jan 2017, 3:37 AM
Megatron
Megatron - avatar
+ 2
#include <iostream> using namespace std; #define s ; int main() { cout<<" something" s return 0; }
7th Jan 2017, 3:38 AM
Megatron
Megatron - avatar
0
I think it is not possible because every line after main function must end with a semicolon
7th Jan 2017, 8:41 AM
Saksham Beniwal
Saksham Beniwal - avatar