C program to print Hello World without using semi colon:
Below C program will print “Hello World” without using semi colon. This program displays hello world and then returns 11 ( the length of the string “hello world” )
1 2 3 4 5 6 7 8 9 10 11 |
#include <stdio.h> int main() { if(printf("Hello World")) { } } |
Output:
Hello World