对下面的这一段代码
int a[10]; int *b = new int[10]; int *c = (int*) malloc(sizeof(int) * 10); cout << sizeof(a) << endl; cout << sizeof(b) << endl; cout << sizeof(c) << endl;
我的电脑就会输出40 4 4
但是在线IDE或者牛逼一点的电脑就会输出40 8 8