+ 1
Why did we get this output?
I know printf() returns the number of characters after printing but why is the output 6521 for this? https://code.sololearn.com/cPBTJVUpJ73n/?ref=app
3 Answers
+ 4
000101 is octal representation of decimal 65
The first 2 of the output (65) was this number
The third of the output (2) was the number of characters used to print 65 (2 characters, 6 and 5)
The fourth of the output (1) was the number of characters used to print 2 (the length of '65').
Hth, cmiiw
+ 1
Ipang Got it, thanks!
0
codemonkey Yes