#include <iostream>
#define tamanho 10
const int elementos = 10;
using namespace std;
int main() {
int a = 1;
char b = 'a';
float c = 1.0f;
double d = 2.0d;
short e = 1000;
long f = 100000;
int *g = new int[tamanho];
int h[elementos];
cout << "a tem " << sizeof(a) << " bytes\n";
cout << "b tem " << sizeof(b) << " bytes\n";
cout << "c tem " << sizeof(c) << " bytes\n";
cout << "d tem " << sizeof(d) << " bytes\n";
cout << "e tem " << sizeof(e) << " bytes\n";
cout << "f tem " << sizeof(f) << " bytes\n";
cout << "g tem " << sizeof(g) << " bytes\n";
cout << "h tem " << sizeof(h) << " bytes\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojZGVmaW5lIHRhbWFuaG8gMTAKY29uc3QgaW50IGVsZW1lbnRvcyA9IDEwOwp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYSA9IDE7CgljaGFyIGIgPSAnYSc7CglmbG9hdCBjID0gMS4wZjsKCWRvdWJsZSBkID0gMi4wZDsKCXNob3J0IGUgPSAxMDAwOwoJbG9uZyBmID0gMTAwMDAwOwoJaW50ICpnID0gbmV3IGludFt0YW1hbmhvXTsKCWludCBoW2VsZW1lbnRvc107Cgljb3V0IDw8ICJhIHRlbSAiIDw8IHNpemVvZihhKSA8PCAiIGJ5dGVzXG4iOwoJY291dCA8PCAiYiB0ZW0gIiA8PCBzaXplb2YoYikgPDwgIiBieXRlc1xuIjsKCWNvdXQgPDwgImMgdGVtICIgPDwgc2l6ZW9mKGMpIDw8ICIgYnl0ZXNcbiI7Cgljb3V0IDw8ICJkIHRlbSAiIDw8IHNpemVvZihkKSA8PCAiIGJ5dGVzXG4iOwoJY291dCA8PCAiZSB0ZW0gIiA8PCBzaXplb2YoZSkgPDwgIiBieXRlc1xuIjsKCWNvdXQgPDwgImYgdGVtICIgPDwgc2l6ZW9mKGYpIDw8ICIgYnl0ZXNcbiI7Cgljb3V0IDw8ICJnIHRlbSAiIDw8IHNpemVvZihnKSA8PCAiIGJ5dGVzXG4iOwoJY291dCA8PCAiaCB0ZW0gIiA8PCBzaXplb2YoaCkgPDwgIiBieXRlc1xuIjsKCXJldHVybiAwOwp9