Computer Science, asked by Ajaymahajan4245, 1 year ago

Write a function that mimics the behavior of "ftoa" function,
It should be defined as follows:
char* ftoa (float number, char* buffer, int base )
Example:
float n = 2.5;
char* buffer = new char[20];
ftoa(n,buffer,10);
cout<

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
1

tex

It should be defined as follows:

char* ftoa (float number, char* buffer, int base )

Example:

float n = 2.5;

char* buffer = new char[20];

ftoa(n,buffer,10);

cout<

Similar questions