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
Wt are the Buses in C Language
What is a stream water?
What is an example of structure?
What is getch c?
What is the 'named constructor idiom'?
What is the difference between strcpy() and memcpy() function in c programming?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is the modulus operator?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
using for loop sum 2 number of any 4 digit number in c language
Explain high-order bytes.
Why can’t constant values be used to define an array’s initial size?
What oops means?
What are 3 types of structures?