GeekInterview.com
   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?



March 03, 2007 10:20:41 #10
 Manoj   Member Since: Visitor    Total Comments: N/A 

RE: How do you write a program which produces its own ...
 
All the solutions above are reading the source code with the files concepts.

find a solution where you do not have a source file to read the contents.

There is a macro or an attiribute which tells the compiler the name of the program, function or the attribute. You can use that to get the source code. try out...!!!
     

 

Back To Question