array to array
array to array
(OP)
Hi,
I have to learn arrays and I am having trouble to
pass the "name" array into the "max_age_name" array.
Your help is very much appreciated
Andonny
if(maxage<age)
{
maxage=age;
while(name!='\0')
{
max_age_name=name;
printf("%c", max_age_name[i++]);
i++;
}
}
I have to learn arrays and I am having trouble to
pass the "name" array into the "max_age_name" array.
Your help is very much appreciated
Andonny
if(maxage<age)
{
maxage=age;
while(name!='\0')
{
max_age_name=name;
printf("%c", max_age_name[i++]);
i++;
}
}





RE: array to array
other way is to copy character by character. In your code array subscript is missing.
It should be :
max_age_name=name;
Regards,
Nkhiste.
RE: array to array
table_1[6] {'\o', 'K', 'E', 'N', 'Z', '\o'}
table_2[6] {'\o', 'D', 'O', 'B', 'R', '\o'}
what should i do to make 'K', 'E', 'N' to display on screen?