Ok I try my program with the source code as followed, but the compiler stated that Lvalue is required what is the error within my source code?
Code:
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<stdlib.h>
#include<string.h>
char ch[26][1];
void ChangeToNext();
main(){
clrscr();
fflush(stdin);
ChangeToNext();
getch();
return 0;
}
void ChangeToNext(){
char answer[1];
int i=0;
char ch[26][1]={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
printf("Please enter any alphabet number:");
scanf("%c",&answer);
for (i=0;i<26;i++)
{
if (answer==ch[i])
answer = ch[i+1];
prinf("The answer:", answer);
getch();
}
}