有以下程序:#include <stdio.h>#include <string.h>int main() { int a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a[3],*q=p+2; printf("%d\n",*p+*q); return 0;}程序运行后的输出结果是( ).
- 首页
- 法律职业资格
-
1.有以下程序:#include #include int main() { int a[10]={1,2,3,4,5,6,7,8,9,10},*p=&a
-
2.下面程序运行后的输出结果是____。#include Int main() { printf("%d\n", NULL); return 0;}
-
3.以下程序输出的结果是( ).
-
4.下面程序的运行结果是 ( ) 。
-
5.有以下关于while语句的程序:#include
int main()
{
int n=20;
while(n>17)
{
n--;
printf("%d",n);
}
-
6.有以下程序:#include int f(int n);main(){ int a=3,s;s=f(a);s=s+f(a); printf("%d\n",s);}int f(int
-
7.下面程序的运行结果: 。
-
8.下面程序的运行结果: 。
-
9.有以下程序 #include int f(int n); main() { int a=3,s; s=f(a);s=s+f(a);printf(“%d
”,s); } int f(int n) {
-
10.下列程序的运行结果是()。