The output of the above code will be 1.200000 with 6 space.
Explanation:
Here 1.200000 is printing with, 6 spaces, because by giving * in printf we can specify an additional width parameter, here ‘pos’ is the width and ‘data’ is the value. if the number is smaller than the width then rest is filled with spaces.
Answer:
The output of the above code will be 1.200000 with 6 space.
Explanation:
Here 1.200000 is printing with, 6 spaces, because by giving * in printf we can specify an additional width parameter, here ‘pos’ is the width and ‘data’ is the value. if the number is smaller than the width then rest is filled with spaces.
need an explanation for this answer? contact us directly to get an explanation for this answer