C onefile program printing (on stdout) self complete source code.

Posted by Svisstack on Stack Overflow See other posts from Stack Overflow or by Svisstack
Published on 2010-06-09T18:48:47Z Indexed on 2010/06/09 18:52 UTC
Read the original article Hit count: 217

Filed under:
|

Hello,

I hear 3 years ago problem and apparently have infinity solutions. I want to find one of this infinity set.

Problem: Write program (have only one file example "selfsource.c") who printing on stdout self source code and exits.

All techniques all alowed. Anyone can help me?

© Stack Overflow or respective owner

Related posts about c

    Related posts about homework