Types bool, char, wchar_t, and the signed and unsigned integer types
are collectively called integral types.
On my system type char is 8 bits, short int is 16 bits, int is 32 bits, long
long is 64 bits.
I can define the types you mentioned like this:
p, li { white-space: pre-wrap; }
typedef char int8;
typedef short int int16;
typedef int int32;
p, li { white-space: pre-wrap; }
cout << " char " << sizeof(int8)
<< ", short int " << sizeof(int16)
<< ", int " << sizeof(int32)
<< ", long long " << sizeof(long long) // typedef long long int64
<< endl ;
-space: pre-wrap; }and use the types
int16 Int_16 = 0; int8 Int_8 = 0 ; int32 Int_32 = 0 ;
Hope this is helpful.
Best Regards,
Jim Smith
--- On Tue, 6/30/09, rasheed abdul <[email protected]> wrote:
From: rasheed abdul <[email protected]>
Subject: [c-prog] Need help...
To: [email protected]
Date: Tuesday, June 30, 2009, 6:40 AM
Dear friends,
In one Algorithm for opening HDF file format in C, I seen that they
declared varible in data type as int8, int16, int32. May I know what it is..
While I declared like that in my prgram it showing error as declaration syntex
error... Plz guide me...
Love Cricket? Check out live scores, photos, video highlights and more. Click
here http://cricket. yahoo.com
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]