+3

[SOLVED]Explain How it works?

In a challenge of C language I came across a quiz and found this question about guess the output... but I can't understand how the output is 01 If anyone knows please explain https://code.sololearn.com/cgTpuWsMPbm4/?ref=app

4/4/2019 2:01:19 PM

🇮🇳Omkar🕉

2 Answers

New Answer

+4

printf("0"); will print "0" and return the number of characters that were printed (1 character). The return value is stored in n and printed to the screen

+5

Right answer thanks.. if i change to printf("0000"); it gives output 00004 Thanks again Anna