Start from a main routine: Difference between revisions
→{{header|Component Pascal}}
(Add Logtalk implementation) |
|||
Line 26:
print "Hello World!"
}</lang>
=={{header|C}}==
Code execution in C always starts at main(). Macros make possible programs such as the one below, although it's not the best way to write C code.
<lang C>
/*Abhishek Ghosh, 7th November 2013, Rotterdam*/
#include<stdio.h>
#define start main()
int start
{
printf("Hello World !");
return 0;
}
</lang>
<pre>
Hello World !
</pre>
=={{header|Component Pascal}}==
|