What is the application of itoa()

Showing Answers 1 - 3 of 3 Answers

TheChamp

  • Jul 14th, 2007
 

itoa() is used to convert integer to string

  Was this answer useful?  Yes

shine_babu

  • Jul 16th, 2007
 

Converts an integer value to a null-terminated string using the specified base.

If base is 10 and value is negative, the resulting string is preceded with a minus sign (-). With any other base, value is always considered unsigned.

 

  Was this answer useful?  Yes

kbjarnason

  • Jul 1st, 2010
 

Since C doesn't define an itoa function, it's application could be anything at all.

By contrast, the atoi function is used to convert a string representation of an integer value to an actual integer value.  However, atoi absolutely sucks for this purpose as there's no way to detect a failure; use strtol instead.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions