+ 1
Can somebody please tell output of statement printf("%-6.3f",39689.8965); with explanation?
4 Réponses
+ 2
Thanks
+ 2
To see the effect of "-" add something after %-6.3f and as ~ swim ~ said increase the width, for example:
printf("%-21.3f hello", 39689.8965);
also try with zero: %021.3f