填空题

有以下程序:
#include <stdio.h>
void f(int y,int *x)
y=y+ *x; *x=*x+y;
main()
int x=2,y=4;
f(y,&x);
printf("%d%d\n",x,Y);
执行后的输出结果 【6】 。

【参考答案】

8 4
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> #include <stdlib.h> struct NODE int num; struct NODE *next; ; main() struet NODE *p,*q,*r; int sum=0; p=(struct NODE *) malloc(sizeof(struct NODE)); q=(struct NODE *) malloc(sizeof(struet NODE)); r=(struct NODE *) malloc(sizeof(struct NODE)); P- >num=1;q- >num=2;r->num=3; p- >next=q;q- >next=r;r- >next=NULL; sum + =q- >next- >num;sum + =P- >num; printf( %d n ,sum); 执行后的输出结果是( )。
A.3
B.4
C.5
D.6
填空题
面向对象的程序设计方法中涉及的对象是系统中用来描述客观事物的一个 【2】 。
相关试题
  • 下面程序的运行结果是 【18】 。 #in...
  • 下面rotate函数的功能是:将n行n列的矩阵A...
  • 有以下语句段: int n1=10,n2=2...
  • 以下sstrcpy()函数实现字符串复制,即将t...
  • 以下程序的运行结果是 【17】 。 #in...