IS IT POSSIBLE TO PRINT “HELLO WORLD” WITHOUT SEMICOLON IN C? HOW?
Yes. It is possible to print “Hello World” without semicolon in C program. Please refer below example program.
This program prints “Hello World” in console window and returns 11 which is the value of string length.
#include <stdio.h>int main(){if(printf(“Hello World”)){/* Do nothing */}}
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Yes. It is possible to print “Hello World” without semicolon in C program. Please refer below example program.
This program prints “Hello World” in console window and returns 11 which is the value of string length.
#include <stdio.h>
need an explanation for this answer? contact us directly to get an explanation for this answerint main()
{
if(printf(“Hello World”))
{
/* Do nothing */
}
}