1.

What Does Itoa() Function In C ?

Answer»

The itoa() function in C language used to convert an integer value to its EQUIVALENT null-terminated String. It stores the result in an ARRAY.

Syntax:

1.char * itoa ( int value, char * str, int base );

PARAMETERS:

value: A value which needs to be converted

str: A parameter which stores the converted value as an array

base: It represents the numerical value, which is used to give the conversion base, as base 2 for binary, base 10 for DECIMAL.

The itoa() function in C language used to convert an integer value to its equivalent null-terminated String. It stores the result in an array.

Syntax:

1.char * itoa ( int value, char * str, int base );

Parameters:

value: A value which needs to be converted

str: A parameter which stores the converted value as an array

base: It represents the numerical value, which is used to give the conversion base, as base 2 for binary, base 10 for decimal.



Discussion

No Comment Found