VMS Help
CC, Language topics, Data Types

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

  The data type of an object must be specified in its declaration.
  The fundamental data types are the scalar types:

  short int           16-bit signed integer
  signed short int    16-bit signed integer
  unsigned short int  16-bit unsigned integer
  int                 32-bit signed integer
  signed int          32-bit signed integer
  unsigned int        32-bit unsigned integer
  long int            32-bit signed integer
  signed long int     32-bit signed integer
  unsigned long int   32-bit unsigned integer
  char                8-bit signed integer
  signed char         8-bit signed integer
  unsigned char       8-bit unsigned integer
  wchar_t             Long character (32-bit unsigned integer)
  float               32-bit (single-precision) floating-point number
  double              64-bit (double-precision) floating-point number
  long float          Interchangeable with double, but usage is
                      obsolete
  _Bool               An unsigned int that has the value 0 or 1
  _Imaginary          A C99-specified data type.  In Compaq C, use of
                      the _Imaginary keyword produces a warning,
                      which is resolved by treating it as an ordinary
                      identifier.

  The signed keyword is the default.  Declaring an object with int,
  for example, is equivalent to declaring it with signed int.
  However, char declarations should be explicitly declared, as the
  compiler offers command-line options to change the default.  If in
  doubt, use signed char over char because signed char is more
  portable.

  Strings are arrays of characters terminated by the null character
  (\0).

  Also, view the contents of the <ints.h> header file for definitions
  of platform-specific integer types.

  Additional Information (explode) :

  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.