I really can not figure out which array is correct syntax and legal, A or B?Code:typedef enum {HOT, COLD} Temperature; int main() { Temperature TEMP; float A[TEMP] = {75, 12}; /* this work, compiled no error */ float B[Temperature] = {80, 20}; /*this also work too, no error, why? }
Can any one explain this to me.
Thank you.
DiepVien_007