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

How can I read a directory in a C program?

2 Answers   Bright Outdoor, Wipro,


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

0 Answers   TCS,


What are linked lists in c?

0 Answers  


What is data structure in c language?

0 Answers  


What are dynamically linked and statically linked libraries?

2 Answers  


What is scope rule of function in c?

0 Answers  


What is hashing in c language?

0 Answers  


Can we initialize extern variable in c?

0 Answers  


What is the use of volatile?

0 Answers  


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

0 Answers  


How can I rethow can I return a sequence of random numbers which dont repeat at all?

0 Answers  


What is the argument of a function in c?

0 Answers  


Categories