why am i getting error in this switch statement written in c
- by mekasperasky
I have a character array b which stores different identifiers in different iterations . I have to compare b with various identifiers of the programming language C and print it into a file . When i do it using the following switch statement it gives me errors
b[i]='\0';
switch(b[i])
{
case "if":fprintf(fp2,"if ----> …