Pointer variables can also point to a string.
查看答案
#includeint f(int x,int y) { return ((y-x)*x); } main() { int a=3,b=4,c=5,d; d=f(f(a,b),f(a,c)); printf("%d\n",d); } The output of the program is ( ).
A. 10
B. 9
C. 8
D. 7
int x[5]; You can use the array name to output all elements of a numeric array, e.g. printf("%s",x);
#includemain() { char *s={"ABC"}; do { printf("%d",*s%10); s++; } while(*s); } The ASCII value of the letter A is 65. The output of the program is ( ).
A. 5670
B. 656667
C. 567
D. ABC
The following function value is of type ( ). fun (float x) { float y; y= 3*x-4; return y; }
A. int
B. uncertain
C. void
D. float