float x=12.345;
char str[10];
sprintf(str,"%f",x);
int i = 0;
do {
printf( "%c", str[i]);
i++;
}while( i<=sizeof(str));
printf("\n\n");
float x=12.345;
char str[10];
sprintf(str,"%f",x);
int i = 0;
do {
printf( "%c", str[i]);
i++;
}while( i<=sizeof(str));
printf("\n\n");