Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

‫تقييم ‪2‬‬

#include <iostream>;
using namespace std;
int main()
{
cout << "The type: INT \n";
cout << "Range: From " << INT_MIN;
cout << " to " << INT_MAX;
cout << "\nSize: " << sizeof(int) << " byte\n";
cout << "\nThe type: unsigned INT\n";
cout << "Range: From 0 " << " to " << UINT_MAX;
cout << "\nSize: " << sizeof(unsigned int)<<" byte\n";
cin.get();
return 0;
}

)20( ‫األخطاء الموجودة في موقع الكومبايلر في سوال العملي صفحة‬

#include <iostream>
#include <climits>
using namespace std;
int main()
{
cout << "The type: short\n";
cout << "Range: From " << SHRT_MIN;
cout << " to " << SHRT_MAX;
cout << "\nSize: " << sizeof(short) << " byte\n";
cout << "\nThe type: unsigned short\n";
cout << "Range: From 0 " << " to " << USHRT_MAX;
cout << "\nSize: " << sizeof(unsigned short) << " byte\n";
return 0;}

You might also like