Questions tagged [incompatibletypes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

PSET 2 - Substitution - incompatible integer to pointer conversion using strstr function

I am doing PSET 2 - Substitution and am trying to implement a check for every character of the key to be unique. For that I create a helper array key_check, fill it with letters from the key one by ...
zendynar's user avatar
0 votes
1 answer

Pset 2 - Substitution: Incompatible Integer to Pointer Conversion Error

I've tried this over and over and can't get this right. This is only a snippet of my code. I keep on getting this error: "testcode.c:21:31: error: incompatible integer to pointer conversion ...
KidAmulet's user avatar
0 votes
1 answer

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) ...
William George Bangay's user avatar
0 votes
1 answer

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:
Joe Joe Joe's user avatar
0 votes
1 answer

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 ...
faelesterio's user avatar