I am trying to understand the functionality of printf for octal numbers. if I write code like:
int main()
{
char *s = "\123";
printf("%s",s);
}
This gives me a result like S, which is actually correct, since ASCII S is 123 in octal. But my question is how the compiler identifies a sequence of numbers to convert from octal. eg:
char *s = "\123456"
will give the result as S456
This is that octal conversion requires a maximum of 3.
Is there a maximum limit within which an octal must be specified (an octal number with eight digits will be 777)
, 255 ascii ( 377), , 777, asc ascii, , , , ascii, .
, /os
, , : -)