Is there anyway by which we can copy one enum to another one?For eg:
enum Element4_Range{a4=1,b4,c4,d4}; enum Element3_Range{a3=1,b3,c3}; enum Element3_Range Myarr3[10]; enum Element4_Range Myarr4[10]; enum Element3_Range MyFunc(Element4_Range); main() { MyFunc(Myarr4); } enum Element3_Range MyFunc(Element4_Range Target) { enum Element3_Range Source; Source = Target;-----------Is this possible? } If not can anyone please show me the way to copy the values of enum from one to another?
I was getting an error while executing this like
- incompatible types in assignment of
Element3_Range*' toElement3_Range[10]' - cannot convert
Element4_Range' toElement3_Range' in assignment
Thanks and regards
Maddy