Hi ,I wrote this functiont to check for abanded characters ,but it doesnt work
I need help
Thanks
The errors are missing terminating characters
Code:int checkout(char letter) { char forbiden[20]={'{','}','[',']','(',')','0','1','2','3','4','5','6','7','8','9','+,'-','*','/'}; int i; int numErrors=0; for(i=0;i<20;i++) { if(forbiden[i]!=letter); numErrors++; } return numErrors; }