130k views
3 votes
You can obtain a string from an integer i using

User SylonZero
by
5.5k points

1 Answer

3 votes
It depends on the programming language which library function to use. In C# and Java you have the i.toString() construct, in C/C++ you could use itoa(i, str, 10) or sprintf("%d", i).
User Jarrodwhitley
by
5.0k points