#include <limits>
using namespace std;
int main() {
int value = 55555;
cout << value << endl;
// 구글 검색 limits.h 표현 가능한 표 확인 가능cout << "Max int value "<< INT8_MAX << endl;
cout << "8bit Max int value "<< INT8_MAX << endl;
cout << "8bit Min int value "<< INT8_MIN << endl;
cout << "16bit Max int value "<< INT16_MAX << endl;
cout << "16bit Min int value "<< INT16_MIN << endl;
cout << "32bit Max int value "<< INT32_MAX << endl;
cout << "32bit Min int value "<< INT32_MIN << endl;
cout << "64bit Max int value "<< INT64_MAX << endl;
cout << "64bit Min int value "<< INT64_MIN << endl;
long int lValue = 9223372036854775807;
cout << lValue << " Max range" << endl;
short int sValue = 32767;
cout << sValue << " Max range" << endl;
cout << "Size of int: " << sizeof(int) << "Byte" << endl;
cout << "Size of shot: " << sizeof(short) << "Byte" << endl;
cout << "Size of shot: " << sizeof(short int) << "Byte" << endl;
unsigned int uValue = 2147483649;
cout << uValue << endl;
return 0;
}
댓글 없음:
댓글 쓰기