All pastes #382212 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-05 12:21 UTC
rendered paste body
#include <iostream>
using namespace std;


int main ()

{

 char a ; short int b ; long int c ; float d ; double e ;  bool f ; long double g ; wchar_t h ;



a = sizeof (char);
b = sizeof (short int);
c = sizeof (long int);
d = sizeof (float);
e = sizeof (double);
f = sizeof (bool);
g = sizeof (long double);
h = sizeof (wchar_t) ;

        cout << sizeof (char)     << '\n';
        cout << sizeof (short int)<< '\n';
        cout << sizeof (long int) << '\n';
        cout << sizeof (float)    << endl;
        cout << sizeof (double)   << endl;
        cout << sizeof (bool)     << endl ;
        cout << sizeof (long double) << endl;
        cout << sizeof (wchar_t)    << endl ;

return 0 ;

}