万能百科  > 计算机   > 

[填空题] 下面程序由两个源程序文件t4.h和t4.c组成,程序编译运行的结果是______。 t4.h的源程序为: #define N 10 #de

2021-07-20   

[填空题] 下面程序由两个源程序文件t4.h和t4.c组成,程序编译运行的结果是______。

t4.h的源程序为:

#define N 10

#define f2(x) (x*N)

t4.c的源程序为:

#include <stdio.h>

#define M N

#define f(x) ((x)*M)

#include "t4.h"

main()

int i,j;

i=f(1+1); j=f2(1+1);

printf("%d %d", i,j);

正确答案:

20 11

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签