|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
#include<stdlib.h>
#include<stdio.h>
int main()
{
int n = 1234;
char p[20];
itoa(n,s,10);
printf("n=%d,s=%s",n,s);
return 0;
}
itoa(n,s,10);
Notice that the itoa() function takes three
arguments: the first argument is the number you want to convert to the
string, the second is the destination string to put the converted
number into, and the third is the base,
or radix, to be used when converting the number.
Create Date
:
Sunday, March 16, 2008
Click here
to improve the Interview Question, Answer and other fields.
|
|
Inappropriate
|
See Answer
To Email:
Subject:
Note to go along with the question: (Optional, no
more than 1,000 characters)
itoa() is used to convert integer to string.
Create Date
:
Saturday, March 15, 2008
Click here
to improve the Interview Question, Answer and other fields.