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:

1 comment:

  1. Thanks 😊
    You can also find Programming exercise in c++ here.
    https://myustaadg.com/category/programs/

    ReplyDelete