int arrayofints[5] = {1,2,3,4,5}; //int array
char arrayofchars[5]; //char array
int i; //just for the for loop
for(i = 0; i < 5; ++i)
{
arrayofchars[i] = arrayofints[5] + 48; //convert the int to equivalent ascii.
}
thank you very very much :)...but i want to know if i can change only one element at a time and i would like it to be 'm'.
so is there a way to first decide the 2d array index ..then take that element out first ...second replace that index with 'm'.
ps:it's an 2d array of inegers.
thank you appreciate it.