fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. cout << "Signed char size " << sizeof(char) << endl;
  7. cout << "Unsigned char size " << sizeof(unsigned char) << endl;
  8. cout << "Short integer size " << sizeof(short) << endl;
  9. cout << "Unsigned short integer size " << sizeof(unsigned short) << endl;
  10. cout << "Unsigned integer size " << sizeof(unsigned) << endl;
  11. // your code goes here
  12. return 0;
  13. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Signed char size 1
Unsigned char size 1
Short integer size 2
Unsigned short integer size 2
Unsigned integer size 4