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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of c language?

558


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

725


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3661


Explain how can you be sure that a program follows the ansi c standard?

865


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1186






any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

695


What is 2c dna?

608


What is the use of typedef in c?

587


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

746


Do you have any idea how to compare array with pointer in c?

604


What is the c language function prototype?

646


What is meant by inheritance?

634


What do you mean by keywords in c?

630


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1544


What does c mean?

588