Skip to content

Instantly share code, notes, and snippets.

@jitpaul

jitpaul/initialization3.cpp Secret

Last active Apr 6, 2020
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