[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CHelloWorld

(C) Hello World

  1. include<stdio.h>
int main() { printf("Hello World\n"); return 0; }


You can also add a line to ask for a key press (as suggested by sagar dhavare). This changes the program to:

  1. include<stdio.h>
  2. include<stdlib.h>
int main() { printf("Hello World\n"); system("pause"); return 0; }


'Hello world' links

Code links



last edited (December 1, 2006) by bilderbikkel, Number of views: 8492, Current Rev: 17 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.