The following code in c+ gives me the warning assignment makes integer from pointer without a cast.
destination is set as char destination[10] to limit the input string to 10 characters.
name[i] is an array of ten places char name[10]
iv looked in several books but cant find an references to integer pointer errors.
Could someone tell me what i am doing wrong thanks.
scanf("%s",dest ination);
e = (strcmpi(destin ation,"exit"));
name[i] = destination;
destination is set as char destination[10] to limit the input string to 10 characters.
name[i] is an array of ten places char name[10]
iv looked in several books but cant find an references to integer pointer errors.
Could someone tell me what i am doing wrong thanks.
scanf("%s",dest ination);
e = (strcmpi(destin ation,"exit"));
name[i] = destination;
Comment