Difference between revisions of "The First Traditional "Hello world!""

From MorphOS Library

m
(Contents++;)
Line 3: Line 3:
  
 
=="Hello World!" With the Standard C Library==
 
=="Hello World!" With the Standard C Library==
 +
 +
With the standard C library, one can use the "Hello World!" example exactly as found in a C handbook. It is given below, just for completness:
 +
 +
 +
<tt>#include <stdio.h><br><br>
 +
int main(void)<br>
 +
{<br>
 +
&nbsp;&nbsp;printf("Hello World!\n");<br>
 +
&nbsp;&nbsp;return 0;<br>
 +
}<br></tt>
  
  
 
=="Hello World!" With MorphOS Native API==
 
=="Hello World!" With MorphOS Native API==

Revision as of 09:41, 23 October 2010

Grzegorz Kraszewski


"Hello World!" With the Standard C Library

With the standard C library, one can use the "Hello World!" example exactly as found in a C handbook. It is given below, just for completness:


#include <stdio.h>

int main(void)
{
  printf("Hello World!\n");
  return 0;
}


"Hello World!" With MorphOS Native API