Skip to content

Instantly share code, notes, and snippets.

@mastbaum
Created September 28, 2012 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mastbaum/3797199 to your computer and use it in GitHub Desktop.
Save mastbaum/3797199 to your computer and use it in GitHub Desktop.
null member return value
#include <stdio.h>
class foo {
public:
int thinger() {}
};
int main(int argc, char* argv[]) {
int i;
foo f;
i = f.thinger();
printf("f @ %p\n", (void*)&f);
printf("f.thinger() = %x\n", i);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment