#include<iostream>
using namespace std;
int main()
{
cout<<"the size of integer is:"<<sizeof(int)<<endl;
cout<<"the size of float is:"<<sizeof(float)<<endl;
cout<<"the size of bool is:"<<sizeof(bool)<<endl;
cout<<"the size of character is:"<<sizeof(char)<<endl;
cout<<"the size of string is:"<<sizeof(string)<<endl;
}
No comments:
Post a Comment