Reputation: 265
I want to convert an int to char *
int
char *
char str[10]=; int i=567; str=itoa(i, str, 10)
This gives an error on str the third line
str must have a modifiable lvalue
Upvotes: 0
Views: 18756
Reputation: 11430
char str[10]; int i=567; itoa(i, str, 10);
Upvotes: 12