Re: printf, align & field width?
From: Case - (no_at_no.no)
Date: 06/09/04
- Next message: Richard Tobin: "Re: OOP in C!"
- Previous message: Hongzheng Wang: "Re: Viariables definitions must be first in function definition?"
- In reply to: DaveC: "printf, align & field width?"
- Next in thread: Darrell Grainger: "Re: printf, align & field width?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 09 Jun 2004 14:08:08 +0200
DaveC wrote:
> Hi.. I have a C exam in a few days.. Looking back at old exams I find a few
> things we have not been taught / cant remember being taught. Below is a
> question from last year.
>
> My question is how do you align values and define field widths in the
> printf function? I'm ok with the rest of the question.
Please don't bother us with a lot of text we don't need
to anwer your question. The field with is a number (or
two) between the % and the converion character (e.g., x
for hex values). The details are in every C book or
online help/manual.
Good luck with your exam!
Case
- Next message: Richard Tobin: "Re: OOP in C!"
- Previous message: Hongzheng Wang: "Re: Viariables definitions must be first in function definition?"
- In reply to: DaveC: "printf, align & field width?"
- Next in thread: Darrell Grainger: "Re: printf, align & field width?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|