I've been having this persistent issue that's taken me a day of googling and referencing and still have no idea what's up. Essentially, the code below (which is hopefully commented well enough to make it's intended purposes clear) refuses to compile, giving the error code I placed in the title of this question. "result of comparison against a string literal is unspecified". For my use of 'If (name[i] == " ")' At which point it recommends I use strcmp. (Which is for comparing strings. Not applicable)
The strangeness is that I have seen that exact code used by many other people on this site and elsewhere, and it works. I am quite stumped as to why it's not for me, which is why I've shared my entire program instead of just an excerpt, thinking the issue may be related to how I'm handling something else in the program.
(As an aside, I was reminded of the existence of "toupper" and such during my searching and will probably implement them once I figure this weird issue out.)
int main(void)
{
...
// Set var pchars to 1 to indicate previous letter was space
if (name[i] == (int)" ")
{
pchars = 1;
}
...
}
[Edit: unrelated code removed for Honor Code compliance