#include
using namespace std;
int main()
{
cout<<"char\t\t:"<< sizeof(char)<< "byte"<
cout<< "short\t\t:"<< sizeof(short)<< "byte"<
cout<<"int\t\t:"<< sizeof(int)<< "byte"<
cout<<"long\t\t:"<< sizeof(long)<< "byte"<
cout<<"unsigned char\t:"<< sizeof(unsigned char)<< "byte"<
cout<< "unsigned short\t:"<< sizeof(unsigned short)<< "byte"<
cout<< "unsigned int\t:"<
cout<< "unsigned long\t:"<< sizeof(unsigned long)<< "byte"<
cout<< "float\t\t:"<< sizeof(float)<< "byte"<
cout<< "double\t\t:"<< sizeof(double)<< "byte"<
cout<<"long double\t:"<< sizeof(long double)<< "byte"<
}
Ekran Çıktısı |