Skip to main content
2 votes

How to convert a 'list' into an int

From the Hints section of the spec: If str is a SELECT, then execute returns a list of zero or more dict objects, inside of which are keys and values representing a table’s fields and cells, ...
DinoCoderSaurus's user avatar
1 vote

Prompt for integer > 2 and < 8 in C

This worked while (n > 8 || n < 2)
Steve Rose's user avatar
1 vote

How to find the length of a number

I took a copy of the number, and in a loop divided the copy by 10 until it was 0 (integer by integer division truncates the result, ignoring any fractional part, the result of such division is integer ...
Blauelf's user avatar
  • 21k
1 vote

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
  • 69k

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