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
What do you know about the use of bit field?
Can two or more operators such as and be combined in a single line of program code?
How do I use strcmp?
How can you avoid including a header more than once?
What is the use of extern in c?
What are the complete rules for header file searching?
What is c value paradox explain?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is multidimensional arrays
Explain pointer. What are function pointers in C?
Which is best book for data structures in c?
Explain what are multidimensional arrays?
Why should I prototype a function?
Compare interpreters and compilers.