Re: UnSigned Long
- From: "Peter Nilsson" <airia@xxxxxxxxxxx>
- Date: 29 Aug 2005 15:57:55 -0700
manoj1978@xxxxxxxxx wrote:
> Joriveek wrote:
> > Hi,
> >
> > I want to store myvarz = 3000000000;
> >
> > I have declared myvarz as unsigned long; still not taking.
>
> #include <stdio.h>
>
> int main(void)
> {
> unsigned int myvarz = 3000000000;
> printf("%u\n",myvarz);
> return 0;
> }
> This is working in msvc++ 6.0 and gcc.
It should 'work' on any implementation, but may print values
like 24064 since unsigned int is not required to have more than
16 value bits.
--
Peter
.
- Follow-Ups:
- Re: UnSigned Long
- From: Mike Wahler
- Re: UnSigned Long
- References:
- UnSigned Long
- From: Joriveek
- Re: UnSigned Long
- From: Johan Borkhuis
- Re: UnSigned Long
- From: manoj1978
- UnSigned Long
- Prev by Date: Re: Is char*[] convertible to const char*[]?
- Next by Date: Re: while (1) vs. for ( ;; )
- Previous by thread: Re: UnSigned Long
- Next by thread: Re: UnSigned Long
- Index(es):
Relevant Pages
|