cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
printf
printf
Jun 11, 2014 at 10:02pm UTC
LayMuon
(41)
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?
Jun 11, 2014 at 10:06pm UTC
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
Jun 11, 2014 at 10:07pm UTC
Jun 11, 2014 at 10:07pm UTC
ElizabethKeen
(1)
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
Jun 11, 2014 at 10:28pm UTC
Cubbi
(4774)
some specified amount (computed within program) of blanks
The asterisk does that, as in
%*c
Jun 12, 2014 at 4:09am UTC
LayMuon
(41)
thanks, guys.
Topic archived. No new replies allowed.