Expand|Select|Wrap|Line Numbers
- #include <string.h>
- enum State {yes=1, no=0}SS, *ptr;
- struct Example {
- enum State *ptr;
- }EX;
- enum State SS=yes;
- main()
- {
- struct Example* PTR;
- //enum State *ptr;
- PTR=&EX;
- ptr=&SS;
- printf("%d",PTR->ptr);
- }
Is the logic incorect