Re: data types
- From: "Rahul" <rahul.kashyap98@xxxxxxxxx>
- Date: 2 Mar 2007 22:15:12 -0800
Hi Guys,
i just want to extend the topic a little further.....
what governs the size of a data type? is it the computer architecture
or the compiler which is generating the executable code for a
particular architecture?
Also, does the compiler take care of the endianness of the machine?
What is the case with a cross compiler in such situations?
thanx.
rk.
koolj96825@xxxxxxxxx wrote:
Hi,
I've been working on this project for the past few months in my spare
time, and now I started working on the windows interface and going
over my petzold book, I've come to the realization that an int could
be 32-bit for PCs. Oh, I could kick myself for not checking good in
the beginning, but the manual for the compiler I am using says int is
16-bit. It may be out of date.
Anyway, now that I need to go back over and look closely at my code,
my question is: is there a way to declare a variable say a 16 bit
unsigned integer in C? Or is declaring it "short" the only specifier
that may work?
Thanks in advance
.
- Follow-Ups:
- Re: data types
- From: CBFalconer
- Re: data types
- From: santosh
- Re: data types
- References:
- data types
- From: koolj96825
- data types
- Prev by Date: Re: questions on ftell and fopen
- Next by Date: [more on topic Version, have fun] Re: Twelve Proofs that Muhammad is a True Prophet
- Previous by thread: Re: data types
- Next by thread: Re: data types
- Index(es):
Relevant Pages
|