On 2010-04-11 02:37:22 -0900, Alexei wrote:
> Isn't it a BUG?
> 
> #include <stdio.h>
> int main(int argc, char **argv)
> {
>   int first;
>   int second;
>   printf("&first=%08X &second=%08X",&first,&second);
>   return 0;
> }
> ---------------------------------
> &first=0012FF94 &second=0012FF90

This isn't a bug: %08X takes an unsigned int, not a pointer.

You need:

  printf("&first=%p &second=%p", (void *) &first, (void *) &second);

-- 
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to