This blog is under construction

Monday, 10 June 2013

C program to print "Hello World" without using semicolon

Write a C program to print "Hello World" without using semicolon.



  /* C program to print Hello World without using semicolon */
  #include <stdio.h>
  int main() {
        /* printf - prints given data */
        if (printf("Hello World\n")) {
                // empty if statement
        }
        return 0;
  }



  Output:
  jp@jp-VirtualBox:~/$ ./a.out
  Hello World





See Also:

No comments:

Post a Comment