Select the lines with initialization error

struct A {
    int i;
    static int j;
    int k;
};
Explanation
In aggregate initialization, static members are omitted, so in the initialization list in this example, it can not be more than two elements.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes