Home  Interview Questions  Certifications  Aptitude Questions  Tutorials  Placement Papers  Search  Resume  Soft Skills  Video  Forum  Blog

Android app on Google Play

Technical Interview Questions

Java Interview Questions
Unix Interview Questions
SQL Interview Questions
C# Interview Questions

Aptitude Interview Questions
C/C++ Aptitude Questions
C Aptitude Questions

C Tutorial
C++ Tutorial

Programming Source Codes
C/C++ Source Codes
C# Source Codes

Online Quiz
C Online Quiz
C++ Online Quiz


Home > C Interview Questions >

Does there exist any other function which can be used to convert an integer or a float to a string ?

 Some implementations provide a nonstandard function called itoa(), which converts an integer to string.


char *itoa(int value, char *string, int radix);

The itoa() function constructs a string representation of an integer.

Is the integer to be converted to string representation.

Points to the buffer that is to hold resulting string.
The resulting string may be as long as seventeen bytes.

Is the base of the number; must be in the range 2 - 36.

A portable solution exists. One can use sprintf():

char s[SOME_CONST];
int i = 10;
float f = 10.20;

sprintf ( s, %d %f\n, i, f );

<< Go Back to C Interview Questions. 

Have a Question ? post your questions here. It will be answered as soon as possible.

Check Object Oriented Interview Questions for more Object Oriented Interview Questions with answers

Check Data Structure Interview Questions for more data structure interview questions with answers