locked
How to Print "Hello World" in C ??? RRS feed

  • Question

  • How to Print "Hello World" in C without using semicolon in ur Program ???
    Saturday, March 24, 2007 10:41 AM

Answers

  • #include<stdio.h>

    void main()

    {

         if(printf("Hello world"))

        {}

    }

     

    this prints hello world on screen

    Saturday, March 24, 2007 10:58 AM

All replies

  • This question was asked in AMDOCS (CYPRUS) LTD
    Saturday, March 24, 2007 10:44 AM
  • #include<stdio.h>

    void main()

    {

         if(printf("Hello world"))

        {}

    }

     

    this prints hello world on screen

    Saturday, March 24, 2007 10:58 AM
  • can any one print Hello world without using "if, while, switch " statement ..............its urgent
    Saturday, March 24, 2007 11:27 AM
  • its urgent .........plz if any one know ...........then reply
    Saturday, March 24, 2007 11:55 AM
  • i guess if you want to wite this statement without a semicolon.... then this is the only way...
    Saturday, March 24, 2007 2:54 PM
  • ok
    Sunday, March 25, 2007 5:44 AM
  • yes we can do like this man
    Wednesday, March 28, 2007 8:17 AM