How to print “hello word” without using semicolon in C? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How to print “hello word” without using semicolon in C?

UPDATE : this question ask by one of interviewer in MNC company.

31st Dec 2017, 11:09 AM
Sagar Patel
Sagar Patel - avatar
2 Answers
+ 11
#include <stdio.h> int main() { if(printf("Hello World") == 0){} }
31st Dec 2017, 11:15 AM
David Akhihiero
David Akhihiero - avatar
0
#include <stdio.h> void main() { if(printf("Hello world")) { } }
1st Jan 2018, 5:25 AM
Sagar Patel
Sagar Patel - avatar