how to compare str and the + sign
LINE 15 please help me
#include <stdio.h>
#include <stdlib.h>
#include<ctype.h>
#include<string.h>
int main ()
{
int i;
char str[256];
printf ("Enter a number: ");
gets ( str );
i = atoi ( str );
if(isalpha(str[256]))
{
*/if(strcmp(str,'+')==0)
{
printf("That is a plus sign");
}
}
else
printf("That is digit");
system("pause");
}