以下程序的运行结果是()。#include<stdio.h>intmain(){intp=30;printf("%d\n",p/3>0?p/10:p%3);return0;}? 0|10|30|3
举一反三
- 以下程序运行后的输出结果是#include<stdio.h>intmain(){inta[3][3],*p,i;p=&a[0][0];for(i=0;i<9;i++){p[i]=i+1;}printf("%d\n",a[1][2]);return0;}? 9|3|2|6
- 以下程序中,运行结果是36的有()。 A: B: include <stdio.h> C: define M(y) y*y int main() { printf("%d ",M(6+0)); return 0; } D: E: include <stdio.h> F: define M(y) (y)*(y) int main() { printf("%d ",M(6+0)); return 0; } G: H: include <stdio.h> int M(int y) { return y*y; } int main() { printf("%d ",M(6+0)); return 0; } I: J: include <stdio.h> int M(int y) { return (y)*(y); } int main() { printf("%d ",M(6+0)); return 0; }
- 程序运行结果是。 # include int main (void) { int a = 1, *p; p = &a; printf ("a=%d,*p=%d,", a, *p); *p = 3; printf("a=%d,*p=%d", a, *p); return 0; }
- 【单选题】#include<stdio.h>intmain(){inta[3][3],*p,i;p=&a[0][0];for(i=0;i<9;i++){p[i]=i+1;}printf("%d ",a[1][2]);return0;} A. 6 B. 3 C. 9 D. 2
- .以下程序的运行结果是( )。#includestdio.hint fun(int x){int p;if(x==0||x==1)return(3);p=x-fun(x-2);return p;}main(){printf(%d\n,fun(7));} A: 2 B: 3 C: 7 D: 0