Re: UnSigned Long



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

.



Relevant Pages

  • Re: UnSigned Long
    ... >> Joriveek wrote: ... >> int main ... > like 24064 since unsigned int is not required to have more than ... Prev by Date: ...
    (comp.lang.c)
  • [ncurses] cat xxx |more
    ... int main ... int ch, prev, row, col; ... Works something like a linux cat. ... But this program is limited by *term window size. ...
    (comp.unix.programmer)
  • Re: 16x16Matrix
    ... assume int, but you can pick any other type (including the ones you ... then other replies in the thread might. ... Vladimir ... Prev by Date: ...
    (comp.lang.c)
  • Re: A question about reference in Python.
    ... This is really really really pointless code and a really really pointless ... Python is a superior dynamic programming ... self.prev = prev ... int *next; ...
    (comp.lang.python)
  • Re: A question about reference in Python.
    ... This is really really really pointless code and a really really pointless ... Python is a superior dynamic programming ... self.prev = prev ... int *next; ...
    (comp.lang.python)