Unexpected answer
Posted
by Sandeep
on Stack Overflow
See other posts from Stack Overflow
or by Sandeep
Published on 2010-03-12T04:02:51Z
Indexed on
2010/03/12
4:07 UTC
Read the original article
Hit count: 272
Filed under:
c
#include<stdio.h>
int main()
{
printf("He %c llo",65);
}
Output: A
#include<stdio.h>
int main()
{
printf("He %c llo",13);
}
Output: llo
I can understand that 65 is ascii value for A and hence A is printed in first case but why llo in second case.
Thanks
© Stack Overflow or respective owner