#include [stdio.h] main() { int a; a=5;printf("%d\n",a+1);} 程序的运行结果为 。
举一反三
- #include [stdio.h] int main() { int a=1; int *pa; pa=&a; printf("a=%d\n",a); printf("*pa=%d\n",*pa); *pa=2; printf("a=%d\n",a); return 0; }的运行结果()
- 以下程序的运行结果是( )。#include [stdio.h]int f(int m, int n){ return m > n ? m : n;}main(){ int x = f(5, 3); printf("%d\n", x);}
- 下列程序的运行结果是?#include [stdio.h] int f(int n); int main() { printf("%d\n", f(f(f(f(1))))); return 0; } int f(int n) { return n + 1; } A: 5 B: 4 C: 3 D: 2
- #include [stdio.h] int main() { int a=1; int *pa; pa=&a; *pa=3; printf("a=%d\n",a); return 0; }
- 有以下程序#include [stdio.h]int main(){int i,n[]={0,0,0,0,0};for (i=1;i<=4;i++){n[i]=n[i-1]*3+1; printf("%d ",n[i]);}}程序运行后的输出结果是 。[/i][/i]