Unexpected result from printf
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:17 UTC
Read the original article
Hit count: 312
#include<stdio.h>
int main()
{
printf("He %c llo",65);
}
Output: He A
llo
#include<stdio.h>
int main()
{
printf("He %c llo",13);
}
Output: llo
. It doesnt print He.
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