Jump to content


Check out our Community Blogs

Biwaan

Member Since 20 Jul 2016
Offline Last Active Jul 20 2016 05:52 AM
-----

Posts I've Made

In Topic: The magic and flexibility of printf (part 2)

20 July 2016 - 05:44 AM

Now this %d represents an integer a whose value is 124. Because this is converted to a string and printed on the screen, it would return the count of characters i.e. number of digits in a (which are 3) plus 1 for the newline character (ā€˜\nā€™). Hence the below code should print 124 on first line followed by 4 on the next line.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download