1 vote
Accepted

pset1 credit.c – is this a data type conversion error?

int chopoffend(long long n) int in C is 4 bytes max, that is 2^32 -> 10 digits max
obesman's user avatar
  • 1,139
1 vote
Accepted

incompatible pointer to integer conversion

The problem is your declaration of name as an int. get_string tries to return a string (or char array). It can't store the string ( a char array )in an int. The second error is similar. Since name ...
Cliff B's user avatar
  • 68.7k

Only top scored, non community-wiki answers of a minimum length are eligible