# include
Void main ()
{
Char ch [2] [5]={" 6937 ", "8254"}, * p [2].
Int I, j, s=0;
for(i=0; I<2; I++)
P=ch [I] [I];
for(i=0; I<2; I++)
for(j=0; P [I] [j] & gt; '\ 0'; J +=2)
S=10 * s + p [I] [j] - '0';
printf("%d\n",s);
} CodePudding user response:
P pointer array is an array, element is a pointer, * p [2] defines two char * type of a pointer variable;
Char ch [2] [5] defines a two dimensional array. Initialize the two strings; With just five characters' \ 0 ';
The following is the result of the need to the original poster can be deduced according to the results of two layers of circular logic,
CodePudding user response: