On 12/20/06, Anugrah Redja Kusuma <anugrah.redja@xxxxxxxxx> wrote:
On 12/20/06, Lee David <live4thee@xxxxxxxxx> wrote: > On 12/20/06, Soorej P <mr.soorej@xxxxxxxxx> wrote: > > unsigned int a; > > a=2147483698; a = 2147483698u; /* suffix u/U to make unsigned int literal (default is int) */
Anyway, 'a' will be unsigned here.
> > printf ("size= %d\n", a);
Just that this '%d' specifier will interpret `a' as 'int'.
> > printf("size= %u\n", a);
-- Thanks, Li Qun -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/