Difference between revisions of "Hello World in C"

From eLinux.org
Jump to: navigation, search
Line 1: Line 1:
<syntaxhighlight lang="php">
+
{{#source: c|
 +
#include <stdio.h>
  
<?php
+
main()
    $v = "string";   // sample initialization
+
{
?>
+
  for(;;)
 +
      {
 +
          printf ("Hello World!\n");
 +
      }
 +
}
  
</syntaxhighlight>
+
 
 +
 
 +
}}

Revision as of 19:37, 26 March 2010

{{#source: c|

  1. include <stdio.h>

main() {

 for(;;)
     { 
         printf ("Hello World!\n");
     }

}


}}