Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C (https://www.askmehelpdesk.com/forumdisplay.php?f=438)
-   -   About the enumeration (https://www.askmehelpdesk.com/showthread.php?t=276580)

  • Nov 3, 2008, 07:53 AM
    shruthing
    about the enumeration
    hi,
    can I use the special characters in the enumeration datatype.I know I can use the underscore but I'm not sure whether I can use the /,*,^ somethiing like can anyone tell me.
    if not why I can't use
    enum x
    {
    year_x/2,
    day_y/3
    };
    :rolleyes:
  • Nov 3, 2008, 07:54 AM
    shruthing
    Quote:

    Originally Posted by shruthing View Post
    hi,
    can i use the special characters in the enumeration datatype.i know i can use the underscore but i'm not sure whether i can use the /,*,^ somethiing like can anyone tell me.
    if not why i can't use
    enum x
    {
    year_x/2,
    day_y/3
    };
    :rolleyes:

    OK

  • All times are GMT -7. The time now is 04:33 AM.