C++ short-C++短整型-C++ short取值范围-嗨客网

PHOTO EMBED

Wed Dec 07 2022 08:45:51 GMT+0000 (Coordinated Universal Time)

Saved by @leawoliu

#include <iostream>
#include <climits>
using namespace std;
int main(int argc, char **argv)
{
	cout << "嗨客网(www.haicoder.net)\n" << endl;
	short shortMin = SHRT_MIN;
	short shortMax = SHRT_MAX;
	cout << "shortMin = " << shortMin << " shortMax = " << shortMax << endl;
}
content_copyCOPY

https://m.haicoder.net/cpp/cpp-short.html