Answers for "operand types are incompatible ("char" and "const char *")"

0

operand types are incompatible ("char" and "const char *")

char userInput_Text[3];

if (userInput_Text[1] == 'y') { // <-- Single quotes here.
    // Do stuff.
}
Posted by: Guest on October-26-2021
0

type "_const char " is incompatible with parameter of type "char *

For those who are getting an error like argument of type "_const
char " is incompatible with parameter of type "char *, try replacing
int Save(int _key, char *file); with int Save(int _key, char const *file);
Posted by: Guest on July-06-2021

Code answers related to "operand types are incompatible ("char" and "const char *")"

Browse Popular Code Answers by Language