printf

Can anybody explain how to put blanks in function printf? I mean suppose i need to write n = 5; some specified amount (computed within program) of blanks between = and 5. I am confused with syntax, are there other functions to achieve that?

closed account (j3Rz8vqX)
http://www.codingunit.com/printf-format-specifiers-format-conversions-and-formatted-output

Down before the comments, there are options to adjust spaces before and after something.
Last edited on
For working of printf you can go through below link
http://beej.us/guide/bgc/output/html/multipage/printf.html

Hope it explains you the concept.
Visit Us at::
http://www.ati-erp.com
some specified amount (computed within program) of blanks

The asterisk does that, as in %*c
thanks, guys.
Topic archived. No new replies allowed.