Spread the love
Solution is pretty simple sprintf( )
/* Convert number into string */ #include<stdio.h> int main() { char result[50]; float num = 23.34; sprintf(result, "%f", num); printf("\n The string for the num is %s", result); getchar(); }
If you like this Article, then don’t forget to Click on Social likes buttons.