How do you write a program which produces its own source
code as its output?

Answer Posted / sharath

can we use system() to print source code of a file??

if yes please with an example.
also explain how to execute please please
i am in an urgent need.
please

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need functions in c?

565


given post order,in order construct the corresponding binary tree

2325


What is %g in c?

626


How do I create a directory? How do I remove a directory (and its contents)?

609


What does sizeof int return?

596






List the difference between a While & Do While loops?

641


Is register a keyword in c?

639


What does calloc stand for?

653


Explain c preprocessor?

687


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1507


Why main is used in c?

593


What is the 'named constructor idiom'?

645


Can we declare variables anywhere in c?

582


Difference between goto, long jmp() and setjmp()?

712


What is f'n in math?

623