void alternate(char wordWord[][MAX],char wordVar[],int word[],int i,int j, int k, int l)
{
char ang[4],si[3],ni[3],ay[3],sa[3],kay[4];
int X,Y,Z1,Z2;
strcpy(ang,"ang");
strcpy(si,"si");
strcpy(ni,"ni");
strcpy(ay,"ay");
strcpy(sa,"sa");
strcpy(kay,"kay");
tokenize(wordWord,wordVar,word,i,j,k,l);
if(wordWord[j][k] == ang[4] || wordWord[j][k] == si[3])
X = wordWord[j][k];
else if(wordWord[j][k] == ni[3])
Z1 = wordWord[j][k];
else if(wordWord[j][k] == ay[3])
Y= wordWord[j][k];
else if(wordWord[j][k] == sa[3] || wordWord[j][k] == kay[4])
Z2 = wordWord[j][k];
printf("%c %c %c %c %c %c %c \n",ang[4],si[3],ni[3],ay[3],sa[3],kay[4]);
printf("%d %d %d %d\n",i,j,k,l);
printf("Alternation 1: %c %c %c %c\n",Y,Z1,Z2,X);
printf("Alternation 2: %c %c %c %C\n",Y,X,Z1,Z1);
printf("Alternation 3: %c %c %c %c\n",Z2,Y,X,Z1);
}
is their something wrong with this? Every time I run it, it compiles but it does not get updated. if I delete something it still displays the previous printf. for example I delete the printf below alternation 1. what will happen is it will still display alternation 2 every time I run it. :confused: