int main()
{

char res[20];

float a = 32.23;

sprintf(res, "%d", a);

printf("\nThe string for the num is %s",res);

return 0;
}

Posted on by