Re: Promoting unsigned long int to long int
- From: pereges <Broli00@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 13:32:38 -0700 (PDT)
On Jul 1, 1:24 am, Keith Thompson <ks...@xxxxxxx> wrote:
Um, why? It will probably work, but for case 1 size_t is exactly the
right type, and for case 2 it's guaranteed to work, while unsigned
long isn't.
It sounds like you want to use unsigned long if at all possible, and
use size_t only if it's absolutely necessary. Why is that?
Mainly because my project has grown beyond 1000 lines and now its
becoming more and more difficult to keep track of things. That's why I
wanted to keep things a little consistent.
.
- References:
- Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: Keith Thompson
- Re: Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: Keith Thompson
- Re: Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: pete
- Re: Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: santosh
- Re: Promoting unsigned long int to long int
- From: pereges
- Re: Promoting unsigned long int to long int
- From: Keith Thompson
- Promoting unsigned long int to long int
- Prev by Date: Re: Is this legal C?
- Next by Date: Re: Promoting unsigned long int to long int
- Previous by thread: Re: Promoting unsigned long int to long int
- Next by thread: Re: Promoting unsigned long int to long int
- Index(es):