return makes integer from pointer without a cast [-Wint-conversion] return candidate
Your local variable candidate is an array of char. When you say you return a pointer to char. (This is due to the very close relationship between arrays and pointers in C, which you will have to learn about if you don’t know yet.) But you’ve stated that your function getkey returns a char, not a pointer-to-char. You need … Read more