Initialization
struct POD{ | |
int a; | |
float b; | |
char c; | |
}; | |
int main(){ | |
POD pod{1,2,'c'}; // aggregate initialization | |
int a[5] = {1,2,3,4,5}; //aggregate initialization | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment