Here document: Difference between revisions

m
(Added 11l)
Line 209:
The program speaks for itself ;)
<lang C>
#include <stdio.h>
 
int main() {
Cputs(
{
printf( "\nTheThe Heredoc task was marked not implementable in C.\n"
\nFrankly "Frankly the person who did so seems to have little idea of what C\n"
"of what C is capable of.\n\"
"After all, what would one call this multiline printf statement string?\n"
"I may be old, but do not forget that it all started with me.\n"
\n\nEver "Ever enigmatic...\n\n"
"C ");
);
 
return 0;
}
</lang>
Output:
Output, extra spaces are due to source code indentation:
<pre>
The Heredoc task was marked not implementable in C.
Frankly the person who did so seems to have little idea of what C is capable of.
of what C is capable of.
After all, what would one call this multiline printf statement ? I may be old, but do not forget that it all started with me.
After all, what would one call this multiline string?
 
After all, what would one call this multiline printf statement ? I may be old, but do not forget that it all started with me.
Ever enigmatic...
 
C
C
</pre>
 
Anonymous user