On Fri, Jan 29, 2010 at 11:41 PM, Olufowobi Lawal <[email protected]> wrote: > > > How can the fact that the size of unsigned int is 4bytes and yet can't > accomodate this value be explained? > > > #include<stdio.h> > int main(void){ > unsigned int usint= 4294967294; > printf("%d %d\n",usint,sizeof(unsigned int));
Use %u for unsigned numbers. %d is for signed numbers. -- PJH http://shabbleland.myminicity.com/ind http://www.chavgangs.com/register.php?referer=9375
