Skip to content

Instantly share code, notes, and snippets.

@jitpaul
Last active April 6, 2020 03:56
Embed
What would you like to do?
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