What's the reason?

The code:

char a=’\015’;
printf("%d",a);

this code results in 13…
Can anyone state the reason?

According to

\015 means “interpret 015 as octal”.

015 in octal is 13 in decimal.

5 Likes

Thanks mate

1 Like