Playground
#include <iostream> using namespace std; struct typeX { int t1, t2, t3, t4; double t5, t6, t7, t8; }; int main() { int a = 5, b = 2; double c = 3.8; char d = 'Z'; typeX e; int *pa = &a, *pb = &b; double *pc = &c; char *pd = &d; typeX *pe = &e; cout << sizeof(pa) << endl; //pechati '4' cout << sizeof(pb) << endl; //pechati '4' cout << sizeof(pc) << endl; //pechati '4' cout << sizeof(pd) << endl; //pechati '4' cout << sizeof(pe) << endl; //pechati '4' return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!