According to the following definition, the statement that can output the letter 'M' is ( ). struct person { char name[9]; int age; } struct person class[10]={ 〞John〞,17, 〞Paul〞,19, 〞Mary〞,18, 〞Adam〞,16};
A. printf(〞%c\n〞,class[3].name);
B. printf(〞%c\n〞,class[3].name[1]);
C. printf(〞%c\n〞,class[2].name[1]);
D. printf(〞%c\n〞,class[2].name[0];
查看答案
In the process of calling a function, directly or indirectly calling the function itself is called a repeated call to the function.
Some problems can only be solved by recursive function calls.
#includeint fun(int a,int b) { if(b==0) return a; else return(fun(--a,--b)); } main() { printf("%d\n", fun(4,2));} The output of the program is ( ).
A. 1
B. 2
C. 3
D. 4
char (*subcut)(char *,int,int); Define a function whose return value is a pointer