| Subject: | Re: printf and cout |
|---|---|
| From: | jacob navia |
| Date: | Fri, 28 Mar 2008 13:22:56 +0100 |
| Newsgroups: | comp.lang.c |
pete wrote: santosh wrote:The %c format expects (and thus treats the corresponding argument as) an unsigned char.No standard library functions are described as taking an argument lower ranking than int. Yes, but the character is promoted to int only for passing it to printf. The expected argument is a char, not an int -- jacob navia jacob at jacob point remcomp point fr logiciels/informatique http://www.cs.virginia.edu/~lcc-win32 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: The problems in comp.lang.c, Kenny McCormack |
|---|---|
| Next by Date: | Re: void * vs. T *, Eric Sosman |
| Previous by Thread: | Re: printf and cout, pete |
| Next by Thread: | Re: printf and cout, Richard Tobin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |