1 2 3 4 5 6 7 8 9 10 11 12
|
typeof(float[35]) notes1, notes2, notes3, notes4, notes5;
/* ou bien */
float notes1[35], notes2[35], notes3[35], notes4[35], notes5[35];
/* avec initialisation */
float notes1[35] = {0.0f}, notes2[35] = {0.0f}, notes3[35] = {0.0f}, notes4[35] = {0.0f}, notes5[35] = {0.0f};
/* ou bien */
typeof(float[35]) notes1 = {0.0f}, notes2 = {0.0f}, notes3 = {0.0f}, notes4 = {0.0f}, notes5 = {0.0f};
/* compile bien mais n'affecte pas les valeurs... */
typeof((float[35]){0.0f, 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f,
10.0f, 11.0f, 12.0f, 13.0f, 14.0f, 15.0f, 16.0f, 17.0f, 18.0f, 19.0f, 20.0f,
21.0f, 22.0f, 23.0f, 24.0f, 25.0f, 26.0f, 27.0f, 28.0f, 29.0f, 30.0f, 31.0f, 32.0f, 33.0f, 34.0f}) notes1, notes2, notes3, notes4, notes5; |
Partager