Skip to content

Instantly share code, notes, and snippets.

@jitpaul
Last active April 6, 2020 03:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jitpaul/f35161b5e274fd8de1470367fb861bb5 to your computer and use it in GitHub Desktop.
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