Home > Back-end >  C language of the new problem solving
C language of the new problem solving

Time:09-17

Program the following
# include
M fun (char [] [10]) {printf (" % s \ n ", m + 1); }
Void main ()
{char a [3] [10]={" BASIC ", "FOXPRO", "C"};
Fun (a);
}
What is the output? And how to solve, thank you for your past bosses help solve

CodePudding user response:

Should the output FOXPRO

CodePudding user response:

In fact,
Printf (" % s \ n ", m + 1);
Should be changed to
Printf (" % s \ n ", m [1]).
Is clear,
Originally m [1] is * (m + 1), m + 1 equals & amp; M [1]
But two dimensional array is a bit strange, m [1] on the address equal to m + 1, m * m on address,
  • Related