InterviewSolution
Saved Bookmarks
| 1. |
How can a number be converted to a string? |
|
Answer» The FUNCTION takes a pointer to an array of char elements that NEED to be converted, and a FORMAT string needs to be written in a buffer as a string int SPRINTF(char *str, const char *format, ...)
The output after running the above code: Output: Value of Pi = 3.141593 |
|