![]() |
C query
i want to get the print of enumuration constants that has been defined in current enumeration in C language.how?
|
Re: C query
Moved to C-C++ forum.
|
Re: C query
The short answer is "you can't", not in standard C.
Given Code:
enum colours { red, green, blue };One way is to define a lookup table, such as Code:
struct { |
| All times are GMT +5.5. The time now is 02:04. |