Why does this C code return warning?

shrddrshrty

New member
(I have proper #includes)
array is a predefined array of numbers.

for ( i=4;1<7;i++)
int = atoi (array);

also
int = atoi (array[4]);

they both come out with error message to the effect of.

error: incompatible types when assigning to type ‘char[3]’ from type ‘int’

How do I fix this?/what is this error message?
 
Back
Top