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,
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,
Comment