1. Write a c program to convert decimal number to hexadecimal number.
3. Write a c program to convert octal number to decimal number.
4. Write a c program to convert octal number to hexadecimal number.
5. Write a c program to convert hexadecimal number to decimal number.
6. Write a c program to convert hexadecimal number to octal number.
8. Write a c program to convert binary number to hexadecimal number.
9. Write a c program to convert binary number to octal number.
11. Write a c program to convert hexadecimal number to binary number.
12. Write a c program to convert octal number to binary number.
11 comments:
can sm1 explain it
The __FILE__ macro expands to full path of the current input file.
So, in the program __FILE__ is replaced by the path of the program.
Then we simply read from the file and display it.
thnx....:):):)
excellent answer...:)
Thanks a lot ....
very good answer
the above wont run if the source file is deleted.. but this will
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
very nice
wonderful idea..
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Hey Boddy Can you explain the line?
How it works?
Advance Thank you.
plz explain this code
OK, maybe those who care figured it out. Here is the explanation:
printf is print formatted. It uses the string specified by the first parameter and applies the rest of the arguments based upon the formatting characters. In this case %s means string, %c means character.
34 is the ascii character ".
%c%s%c puts the string p inside quotes.
Post a Comment