Skip to content

Instantly share code, notes, and snippets.

@starius
Created September 1, 2015 18:53
Show Gist options
  • Save starius/8a87cd43de6689f09f17 to your computer and use it in GitHub Desktop.
Save starius/8a87cd43de6689f09f17 to your computer and use it in GitHub Desktop.
C++ non addressable variable
struct A {
int a : 2;
int b : 2;
int c : 2;
};
int main() {
A a;
int* b = &a.b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment