[OCLUG-devel] determining the size of data types

James Colannino james at colannino.org
Sat Jun 19 19:17:30 PDT 2004


Christopher Smith wrote:

> I assume this is still C/C++ programming, so then you'd want to look at
> sizeof().

<OOPS> Yes, sorry, I should have specified the language... </OOPS>

As for telling me about sizeof(), thank you.  Now I can see how many 
bytes are used for each data type.  Is there also code that I can write 
that will also determine the numerical range that I can get with each 
type?  I.E. with a signed integer I can get 0 to whatever the maximum 
value is.  Thanks again :)

James
-- 
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/

"There are no uninteresting things; only uninterested people." --G.K. 
Chesterton



More information about the OCLUG-devel mailing list