#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
ASCII 13 is carriage return, which on some systems simply moves the cursor to the beginning of the line you were just on.
Further characters then wipe out the earlier text.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With