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

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 is difference between class and structure?

0 Answers  


regarding the scope of the varibles;identify the incorrect statement: a.automatic variables are automatically initialised to 0 b.static variables are are automatically initialised to 0 c.the address of a register variable is not accessiable d.static variables cannot be initialised with any expression

1 Answers   TCS,


write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

1 Answers  


What is C language Terminator?

15 Answers   TCS,






What is the difference between %d and %i?

0 Answers  


When should I declare a function?

0 Answers  


Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001

2 Answers  


what do you mean by inline function in C?

0 Answers   IBS, TCS,


What is the difference b/w Structure & Union?

3 Answers  


what does ‘segmentation violation’ mean?

1 Answers  


code snippet for creating a pyramids triangle ex 1 2 2 3 3 3

4 Answers  


Categories