Quine: Difference between revisions

m (→‎{{header|UNIX Shell}}: Quote "$0", because path might contain spaces or such.)
Line 253:
 
=={{header|C}}==
Note: This example assumes that the <code>stdio.h</code> header has already been included. It also does not return anything from the <code>main()</code> function, which may not be standard. It also does not contain a newline at the end of the file.
<lang c>main(){ char*p="main(){ char*p=%c%s%c; printf(p,34,p,34); }"; printf(p,34,p,34); }</lang>
 
Anonymous user