#include <iostream>
using namespace std;
int main()
{
    unsigned short unshort_int=56;
    signed short signed_short=-6;
    int a=9916543;
    long int long_int=456971;
    long long int ll_int=9914173314;
    
    cout<<"size of short int :"<<sizeof(short int)<<endl;
    cout<<"size of int :"<<sizeof(int)<<endl;
    cout<<"size of long :"<<sizeof(long)<<endl;
    cout<<"size of long long :"<<sizeof(long long)<<endl;
    
    
    cout<<"unsigned short int :"<<unshort_int<<endl;
    cout<<"signed short int value :"<<signed_short<<endl;
    cout<<"long int :"<<long_int<<endl;
    cout<<"long long int :"<<ll_int<<endl;
    cout<<"a :"<<a<<endl;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: