DEV Community

How to print “Hello” in C without using a semicolon?

realNameHidden on May 27, 2023

#include <stdio.h> int main() { if(printf("Hello World\n")){ } switch(printf("Hello World\n")){ } while(!printf(...
Collapse
 
pauljlucas profile image
Paul J. Lucas

Who cares? It's a silly question that should never be asked at all much less in an interview.