私は小さなプログラムを持っています
#include<iostream>
using namespace std;
class xyz{
private: int xyz[]; // Why this line is not giving error.
};
int main(int argc, char *argv[])
{
cout<<sizeof(xyz); //Q=Why this code is not giving error.
return 0;
}
gcc 4.3 を使用しています。なぜ私が間違っているのか教えてください。