float_inverse_string.c
#include<stdio.h>
#include<stdlib.h>
int main()
{
char a[30]="123";
char b[30];
float a1,b1=34555.0;
a1=atof(a);
gcvt(b1,5,b);
printf("%f\n\n",a1);
printf("%s\n",b);
return 0;
}
gcc float_inverse_string.c
float_inverse_string.c
#include<stdio.h>
#include<stdlib.h>
int main()
{
char a[30]="123";
char b[30];
float a1,b1=34555.0;
a1=atof(a);
gcvt(b1,5,b);
printf("%f\n\n",a1);
printf("%s\n",b);
return 0;
}
gcc float_inverse_string.c