-
-
Save kaworu/d0b86b4e11fefd18b3f73ca23a38ea1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <stdio.h> | |
struct foo { | |
int member; | |
}; | |
int | |
main(int argc, char **argv) | |
{ | |
struct foo f = { | |
.member = 42 | |
}; | |
(void)printf("f.member=%d\n", f.member); | |
f = (struct foo) { | |
.member = 1 | |
}; | |
(void)printf("f.member=%d\n", f.member); | |
return (0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment