Home
|
Tech FAQ
|
Interview Questions
|
Placement Papers
|
Tech Articles
|
Learn
|
Freelance Projects
|
Online Testing
|
Geeks Talk
|
Job Postings
 |
Knowledge Base
 |
Site Search
|
Add/Ask Question
GeekInterview.com
>
Tech FAQs
>
OOPS
Print
|
Question
:
How do you write a program which produces its own source code as its output?
October 10, 2005 08:40:04
#7
Sudhakar
Member Since: Visitor Total Comments: N/A
RE: How do you write a program which produces its own ...
main() { char *a="main() { char *a=%c%s%c; char b='%c'; printf(a,b,a,b,b); }"; char b='"'; printf(a,b,a,b,b); }
Back To Question