﻿
#include <iostream>
using namespace std;

int main()
{
    cout << "Wielkości zmiennych:\n\n";
    cout << "char " << sizeof(char) << "B" << endl;
    cout << "signed short int: " << sizeof(signed short int) << "B" << endl;
    cout << "int: " << sizeof(int) << "B" << endl;
    cout << "int min: " << INT_MIN << endl;
    cout << "int max: " << INT_MAX << endl;
    cout << "long long: " << sizeof(long long) << "B" << endl;
    cout << "float: " << sizeof(float) << "B" << endl;
    cout << "Number of digits, q, such that a floating-point number with q decimal digits\n"
        "can be rounded into a floating-point representation and back without loss of precision:" << endl;
    cout << "FLT_DIG - FLoaT DIGits (decimal digits of precision): " << FLT_DIG << " cyfr " << endl;
    cout << "FLT_MANT_DIG - FLoaT MANTissa DIGits (precision): " << FLT_MANT_DIG << "bits " <<  endl;
    cout << "double: " << sizeof(double) << "B" << endl;
    cout << "DBL_DIG - DouBLe DIGits (decimal digits of precision): " << DBL_DIG << " cyfr " << endl;
    cout << "DBL_MANT_DIG - DouBLe MANTissa DIGits (precision): " << DBL_MANT_DIG << "bits" << endl;
    cout << "long double: " << sizeof(long double) << "B" << endl;
    cout << "bool: " << sizeof(bool) << "B" << endl;
}
