Monday, February 15, 2010

22

#include< stdio.h >
main()
{
char a;
a='A'-17;
printf("%c",a);
return 0;
}


Output


0


Logic:


It's simple logic.
ASCII value of character 'A' is 65.
65-17=48
48 is ASCII value of '0'.

0 comments:

Post a Comment