Google News
logo
C-Language - Interview Questions
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 */
 }
}
Advertisement