Questions tagged [incompatibletypes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

Incompatible pointer types even though they are both char*?

dictionary.c:70:20: error: incompatible pointer types passing 'char *[46]' to parameter of type 'const char *' [-Werror,-Wincompatible-pointer-types] if (strcmp(checker->word, lowword) == 0) ...
0
votes
1answer
58 views

CS50: Crack - 'incompatible pointer types' error

I'm getting an 'incompatible pointer types' error when I try to compile my code. Wondering if anyone can help me figure out why? Here's my code and the error:
0
votes
1answer
50 views

strncopy question for pset3 "incompatible pointer types"

Hello here is my code: string num_s[slash_pos]; strncpy(num_s, fraction + 0, slash_pos - 0); where slash_pos = 2, and string fraction = "11/89". I want to get that numerator string "11". I want to ...