[OCLUG-devel] determining the size of data types
Christopher Smith
x at xman.org
Sat Jun 19 18:45:10 PDT 2004
On Sat, 2004-06-19 at 17:33, James Colannino wrote:
> Hey everyone. I was wondering what I could do to determine the size of
> certain data types on my architecture. For example, I want to be able
> to determine how many bytes are assigned to unsigned short integers as
> well as what the numerical range is. Is there some simple code that I
> can write to test this? I actually don't really need to know at this
> point how many bytes are assigned to each, but I do need to be able to
> know the numerical range of any given type. Thanks in advance.
I assume this is still C/C++ programming, so then you'd want to look at
sizeof().
--
Christopher Smith <x at xman.org>
More information about the OCLUG-devel
mailing list