I wish to convert integer array to a character array.
Eg:
void main()
{
int i,temp[512];
for(i=0;i<512;i++)
temp[i] = i+1;
}
How to convert temp array to a character array?
I wish to convert integer array to a character array.
Eg:
void main()
{
int i,temp[512];
for(i=0;i<512;i++)
temp[i] = i+1;
}
How to convert temp array to a character array?
Well, take your example, but modified to be an array of just 4 integers:
So, you have an array of integers 500, 501, 502 and 503. What does the resulting character array look like?Code:int main(void) { int i, temp[4]; for (i = 0; i < 4; i++) temp[i] = i + 500; return 0; }
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)