In the first printf statement 1$ represents which argument to select from those given after a "," and ( represents that if the no. is -tive then it wll wrap it in "()".n 7 means it provides a space of 7 bits for it.d is used for integers... In the second printf statement "0 and ," means it will insert 0's and ,'s in empty spaces that will remain after the digits.for instance here i2 is of 5 digits but we provide a space of 7 digits for it so this statement inserted a 0 and a , in blank spaces. In the format statement "+-" represents that it will insert either + or - depending upon whether the no. is +tive or -tive. In third printf statement "2$" means it will select the 2nd one and "b" is for boolean.... well it is explained in k&b you can check it from there. best of luck.
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad: