Problem : We have this following enum declaration :
enum yytokentype
  {
    ID = 258,
    SEMI = 259,
    NUMBER = 260,
    DECIMAL = 261,
    SENTENCE = 262,
    LETTER = 263,
    ASSIGN = 264,
    //etc... }
Now we get a string whose value can be "ID", "SEMI", "NUMBER" etc.. and we have to store the integer corresponding to that string in enum yytokentype in a separate integer array.I am not sure how to do this in C. There were some answers for C# but I require strictly C here. TIA.
 
     
     
    