Difference between revisions of "Hello World in C"

From eLinux.org
Jump to: navigation, search
(Created page with '<syntaxhighlight lang="php"> <?php $v = "string"; // sample initialization ?> html text <? echo $v; // end of php code ?> </syntaxhighlight>')
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<syntaxhighlight lang="php">
+
{{#source: c|
<?php
+
#include <stdio.h>
    $v = "string";   // sample initialization
+
 
?>
+
main()
html text
+
{
<?
+
  for(;;)
    echo $v;        // end of php code
+
      {
?>
+
          printf ("Hello World!\n");
</syntaxhighlight>
+
      }
 +
}
 +
 
 +
}}
 +
 
 +
[[Category:Development Tools]]
 +
[[Category:C]]

Latest revision as of 10:19, 1 May 2013

{{#source: c|

  1. include <stdio.h>

main() {

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

}

}}