#include <iostream>
using namespace std;
int main() {
cout << "int:" << sizeof(int) << endl;
cout << "double:" << sizeof(double) << endl;
cout << "float:" << sizeof(float) << endl;
cout << "short int:" << sizeof(short int) << endl;
}
2022-02-26 22:47:02
#include <iostream>
using namespace std;
int main() {
cout << "int:" << sizeof(int) << endl;
cout << "double:" << sizeof(double) << endl;
cout << "float:" << sizeof(float) << endl;
cout << "short int:" << sizeof(short int) << endl;
}