Printf question.
- From: "praeiji" <spacecaps@xxxxxxxxx>
- Date: 30 Dec 2005 11:21:25 -0800
Hi,
I was wondering something today. The following code :
unsigned char a = 200;
char b = 200;
printf( "%d %d", a, b );
gives :
200, -56
How comes? I didn't tell printf that the first argument was unsigned
and it detected it on its own. It doesn't seem possible with varargs.
How is it possible?
Thanks,
.
- Follow-Ups:
- Re: Printf question.
- From: Jack Klein
- Re: Printf question.
- From: nelu
- Re: Printf question.
- From: usenet
- Re: Printf question.
- Prev by Date: Re: Scanf Behaviour
- Next by Date: Re: void * pointer convert problem.
- Previous by thread: void * pointer convert problem.
- Next by thread: Re: Printf question.
- Index(es):
Relevant Pages
|