填空题

设有如下宏定义
#define MYSWAP(z,x,y)z=x;x=Y;Y=z;
以下程序段通过宏调用实现变量a、b内容的交换,请填空。
float a=5,b=16,c;
MYSWAP(______,a,b) ;

【参考答案】

c
<上一题 目录 下一题>
热门 试题

填空题
按照软件测试的一般步骤,______测试应在集成测试之前进行。
填空题
若输入I have a test.#,则以下程序的运行结果为______。#include<stdio.h>main() FILE*fp; char str[100],filename[10]; int i=0; if ((fp=fopen( test , w ))==NULL) printf( can not open the file! n ); exit(0); getchar(); gets(str); while(str[i]!=’#’) if (str[i]>=’a’ && str[i]<=’z’) str[i]=str[i]-32; fputc(str[i],fp); i++; fclose(fp); fp=fopen( test , r ); fgets(str,strlen(str)+1,fp); printf( %s n ,str); fclose(fp);
相关试题
  • 在一个容量为15的循环队列中,若头指针fr...
  • 有一个已排好序的数组,今输入一个数,要求...