-
-
Save jitpaul/f35161b5e274fd8de1470367fb861bb5 to your computer and use it in GitHub Desktop.
Initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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