what's the effect of uppercase "S" in printf
- From: "marsarden" <arden1019@xxxxxxxxx>
- Date: 12 Sep 2006 00:39:46 -0700
code below:
#include <stdio.h>
int main(void)
{
char *aaa[]={"a","b","c"};
printf("%S\n",*aaa); /*the uppercase character S*/
getchar();
}
the stdout give me : "abc"
but ,if i change the "%S" to "%s" /*lowercase s*/
it give me "a" only.
there are no info about %S in c std lib reference,
any one can tell me the truth ?
.
- Follow-Ups:
- Re: what's the effect of uppercase "S" in printf
- From: Richard Heathfield
- Re: what's the effect of uppercase "S" in printf
- From: Keith Thompson
- Re: what's the effect of uppercase "S" in printf
- From: Spiros Bousbouras
- Re: what's the effect of uppercase "S" in printf
- Prev by Date: Re: Smart Pointers: Is there something similar to smart pointers in C?
- Next by Date: Re: for(;0;) printf("hello");
- Previous by thread: Smart Pointers: Is there something similar to smart pointers in C?
- Next by thread: Re: what's the effect of uppercase "S" in printf
- Index(es):
Relevant Pages
|