Data Types

One of the problems with C and C++ is that the built-in data types, such as int and long int, are platform dependent. There is nothing in the standard to say how many bytes each data type occupies beyond some basic ordering. For example, long int must use at least as many bytes as int (but it could be the same). This introduces serious portability problems so ROOT predefines, for each platform, a set of basic types with guaranteed sizes. For example:- The full set can be found on $ROOTSYS/Rtypes.h
Go Back to the The ROOT Crib Top Page


If you have any comments about this page please send them to Nick West