new c++ learner , could u help me please

Hello everyone i have this exercise where i have to fill up a quizz of 30 question , i answered all the questions but im still struggling with this one , i know its either C OR D , i hope u can help me guys and explain to me the right answer, thank u in advance!

9. Which one is wrong in the following array declarations?
A. int a[6] = {1,2,3,4};
B. int a[] = {1,2,3,4,5,6};
C. const int SIZE = 6;
int a[SIZE]={0};
D. int SIZE=6;
int a[SIZE] = {1,2,3,4,5,6};

It's D. SIZE is non-constant.
so d its wrong because Size should be constant?
many, many compilers accept D as OK if not set to be very strict. You may see it in working code, in other words, but it still is not pure c++, this is an extended language quasi-standard add on.
Topic archived. No new replies allowed.