How do you write a program which produces its own source
code as its output?
Answer Posted / abhinav gupta
Try to google....quine Problem...
one solution is
main(){char *c="main(){char
*c=%c%s%c;printf(c,34,c,34);}";printf(c,34,c,34);}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Tell me can the size of an array be declared at runtime?
What is the difference between union and structure in c?
What’s the special use of UNIONS?
What is sizeof int in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What does double pointer mean in c?
Where static variables are stored in c?
How do you do dynamic memory allocation in C applications?
What is bubble sort in c?
How can type-insensitive macros be created?
What is dynamic memory allocation?
What is the total generic pointer type?
Why double pointer is used in c?
what is stack , heap ,code segment,and data segment
pierrot's divisor program using c or c++ code