Okay, so i have been writing a program, and to my joy i find i only have two warnings and no errors .
'' '=' char differs in levels of indirection from char * ''
here is the section of code where the error is:
Code:
printf("\nHas the client claimed in the last 12 months? (Y or N):");
fgets(cBuff02, sizeof(cBuff02), stdin);
cAnsYN = fgets(cBuff02, sizeof(cBuff02), stdin);
if (cBuff02[0] != '\n' && (*endptr == '\n' || *endptr == '\0'))
{
do
{
if (cAnsYN == 'Y')
{
iClaimNum++;
cAnsYN i declared as a char
cBuff02 i declared as a char array of size [BUFSIZ]
iClaimNum i declared as an int (but isnt relative to this problem)
Basically, its asking Y or N, if they put in Y, i want to be able to manipulate and use that data, as you can see where i assign the fgets part to cAnsYN, and where i write if(cAnsYN == 'Y').
Help much appreciated .