+ 2

Pls explain line number 5 & 6 in the given code 🙏

Unable to understand the output shown....and working of printf("%d",printf("%d",a)) https://code.sololearn.com/cPERgpwreCIJ/?ref=app

21st Jan 2019, 10:09 AM
[ ]
[     ] - avatar
5 Answers
+ 5
The printf() function will return the number of characters printed. \n is one character So "1", "0","\n" is 3
21st Jan 2019, 10:18 AM
Gordon
Gordon - avatar
+ 1
STATEMENT 5 PRINTF WITH IN PRINTF : THE FIRST PRINTF DISPLAY VALUE OF A 10 AND SECOND PRINT PRINTS NO OF DIGITS IN NUMBER 2 RESULT = 102 STATEMENT 6 PRINTF DISPLAYS VALUE 102 AND ++B WILL INCREASE VALUE BY 1 BEFORE ADDITION SO THE CALCULATION IS 102+6 RESULT = 108
21st Jan 2019, 5:21 PM
sree harsha
sree harsha - avatar
0
Paul can u pls help me ....
21st Jan 2019, 10:10 AM
[ ]
[     ] - avatar
0
Thanks Gordon
21st Jan 2019, 10:23 AM
[ ]
[     ] - avatar
0
22nd Jan 2019, 5:58 AM
[ ]
[     ] - avatar