Tuesday, 24 May 2016

Can we declare a array with empty size is class or struct?

No comments:
Is below program will compile?


class test
   int a[];
   char b[];

int main()
   test t1;
   return 0;

OUTPUT: No compilation error. Array with empty size is allowable syntax in c and c++.

No comments:

Post a Comment