How do you write a program which produces its own source
code as its output?

Answer Posted / sharath

can we use system() to print source code of a file??

if yes please with an example.
also explain how to execute please please
i am in an urgent need.
please

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5363


How can I call fortran?

814


How can a number be converted to a string?

904


Write a program to check whether a number is prime or not using c?

804


Explain how does free() know explain how much memory to release?

782


What is volatile variable in c with example?

781


Why we use int main and void main?

792


program to convert a integer to string in c language'

2195


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1881


Why do we need volatile in c?

939


What are preprocessor directives in c?

842


will u please send me the placement papers to my mail???????????????????

1622


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1773


How can I get the current date or time of day in a c program?

970


What is the meaning of typedef struct in c?

805