Hi
I tried to use a pointer to point to address of an enumurated constant but this made a compile error.
so can can I know address of an enumurated constant and use it with a pointer?
down is a sample code:
#include<iostream.h>
main()
{
enum Date {mainX=1,mainY};
const int *pPointer;
pPointer=&mainX;
cout<<*pPointer;
return 0;
}
thanks