1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Printing "Hello World" in C

Discussion in 'C' started by zion99, Sep 16, 2006.

  1. zion99

    zion99 New Member

    Hi all,

    Has anybody tried printing "Hello" without including any code in the body of the main ?
    I cud not get it as to how to implement the above in C or C++.
  2. shabbir

    shabbir Administrator Staff Member

    Interesting question and here comes the answer
    int i = printf("Hello world");
    void main(){}
  3. zion99

    zion99 New Member

    Thanks Shabbir :)
  4. shabbir

    shabbir Administrator Staff Member

    The pleasure is all mine.
  5. Aztec

    Aztec New Member

    void mainer's are doomed :mad:
  6. shabbir

    shabbir Administrator Staff Member

    I totally agree on that Aztec but there are some habits which are hard to change and nowadays I dont tend to write lots of main functions

Share This Page