How do you write a program which produces its own source
code as its output?
Answers were Sorted based on User's Feedback
Answer / yogesh bansal
if(file == NULL)
printf("cannot open the file");
this is a working code.
|Is This Answer Correct ?||4 Yes||0 No|
Answer / satish
using FILE concept we can achieve this
printf("\n source file opening error");
printf("\n target file opening error");
printf("\n %d bytes copied",c);
printf("\n%d files closed",c);
|Is This Answer Correct ?||4 Yes||2 No|
What are loops c?
write a program to count the no of repaeted words in a line?
C program to perform stack operation using singly linked list
What is void main ()?
What is the right way to use errno?
What are the Advantages of using macro
How would you print out the data in a binary tree, level by level, starting at the top?
explain what is an endless loop?
a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'
What are .h files and what should I put in them?
for(;;) printf("C language") What is out put of above??
Why pointers are used in c?