write a program that print itself even if the source file is
deleted?

Answers were Sorted based on User's Feedback



write a program that print itself even if the source file is deleted?..

Answer / j.shakthi yokesh

@bitan:dude....if u don't mind,plz explain the code....i
didn't understand

Is This Answer Correct ?    0 Yes 0 No

write a program that print itself even if the source file is deleted?..

Answer / bitan

int main(s){
s="int main(s){s=%c%s%c;printf(s,34,s,34);return 0;}";
printf(s,34,s,34);
return 0;
}

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More C Interview Questions

What is the size of enum in c?

0 Answers  


Write a program in c to print * * * * * *******

1 Answers  


Why do we need a structure?

0 Answers  


What is sizeof in c?

0 Answers  


How to print %d in output

6 Answers   Wipro,






What is difference between stdio h and conio h?

0 Answers  


Write a program on swapping (100, 50)

0 Answers   BPL,


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)

0 Answers   Google,


Write one statement equalent to the following two statements x=sqr(a); return(x); Choose from one of the alternatives a.return(sqr(a)); b.printf("sqr(a)"); c.return(a*a*a); d.printf("%d",sqr(a));

6 Answers   TCS,


What do you mean by dynamic memory allocation in c? What functions are used?

0 Answers  


What are .h files and what should I put in them?

3 Answers  


What are disadvantages of C language.

0 Answers   iNautix,


Categories