Various
#include <iostream> // for cout
using namespace std; //standard namespace
// single line comment
/*
multi
line
comments
*/
int main(){
//https://en.cppreference.com/w/c/types/limits
cout<<"hello"<<endl;
int i(-1);
i=2147483647; //biggest int
i=-2147483648; //smallest int
cout<<i<<endl;
unsigned int ui(1);
ui=4294967295; //biggest unsigned int
ui = 0; //smallest unsigned int
cout<<ui<<endl;
long int l(999999999);
short s(9);
float f(-15.5);
double d(9.11e-33);
long double ld(4.4);
char c('A');
char c2(65);
unsigned char uc(255);
bool b(false); //0
bool b2(true); //1 or
bool b3(88); //anything other than 0 is true
cout << "int "<<sizeof(i)<<endl;
cout << "long "<<sizeof(l)<<endl;
cout << "unsigned int "<<sizeof(ui)<<endl;
cout << "short "<<sizeof(s)<<endl;
cout << "float "<<sizeof(f)<<endl;
cout << "double "<<sizeof(d)<<endl;
cout << "long double "<<sizeof(ld)<<endl;
cout << "char "<<sizeof(c)<<endl;
cout << "char c2 = "<< short(c2) <<" with a size of "<<sizeof(c2)<<endl;
cout << char(67)<<endl;
cout << "unsigned char"<<short(uc)<<" "<<sizeof(uc)<<endl; //casting
cout << "bool size "<<sizeof(b)<<endl;
cout << "bool b2 "<<b2<<" b "<<b<<endl;
return 0;
}