write a function in c that accepts a 'float' argument and returns the string
equivalent of it?
equivalent of it?
#include <stdlib.h>
#include <stdio.h>
// To convert the number with base 10 to string.
#define RADIX_VALUE 10
int main()
{
int
nTest = 123;
char
szBuffer[255];
// To convert the number to string.
itoa(nTest, szBuffer, RADIX_VALUE);
// To print the result.
printf(szBuffer);
return 0;
}
Comment