I think I am having trouble converting a floating number into a character array. Can someone please help me with fixing the line I have commented. Thankyou. :)
Code:float top;
char price[5];
printf("Enter top price");
scanf("%f", &top);
price = top; // this line is probably wrong
printf(price[0]);
printf(price[1]);
printf(price[2]);
printf(price[3]);
printf(price[4]);