更多"下面程序由两个源程序文件:t4.h和t4.c组成,程序编译运行的结果是"的相关试题:
[单项选择]下面程序由两个源程序文件t4.h和t4.c组成,程序编译运行的结果是t4.h的源程序为:
#define N 10
#define f2(x)(x*N)
t4.c的源程序为:
#include <stdio.h>
#define M 8
#define f(x)((x)*M)
#include "t4.h"
main( )
int i,j;
i=f(1+1);j=f2(1+1)
printf("%d%d/n" ,i,j);
A. 920
B. 1611
C. 911
D. 1610
[填空题]
下面程序由两个源程序文件:t4.h和t4.c组成,程序编译运行的结果是:()。
t4.h的源程序为:
#define N 10
#define t2 (x) (x*N)
t4.c 的源程序为:
#include <stdio.h>
#define M 8
#define f(x) ((x)*M)
#include "t4.h"
main( )
{int i,j;
i=f(1+1); j=f2(1+1);
printf("%d%d/n",i,j);
}
[填空题]下面程序由两个源程序文件:t4.h和t4.c组成,程序编译运行的结果是:【 】。
t4.h的源程序为:
#define N 10
#define f2(x) (X*N)
t4.c的源程序为:
#include
#define M 8
#define f(x) ((x)*M)
#include "t4.h"
main( )
{int i,j;
i=f(1+1);j=t2(1+1);
printf("%d%d\n",i,J);
}
[填空题]下面程序由两个源程序文件:t4.h和t4.c组成,程序编译运行结果是______。
t4.h的源程序为:
#define N 10
#define f2(x) (x*N)
t4.c的源程序为:
#include
#define M 8
#define f(x) ((x)*M)
#include "t4.h"
main( )
int i,j;
i=f(1+1); j=f2(1+1);
printf("%d%d/n",i,j);
[填空题]下面程序由两个源程序文件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/n", i,j);
[填空题]下面程序由两个源程序文件:t4.h和t4.c组成,程序编译运行结果是______。
t4.h的源程序为:
#define N 10
#define f2(x) (x*N)
t4.c的源程序为:
#include<stdio.h>
#define M 8
#define f(x)((x)*M)
#include "t4.h"
main( )
int i,j;
i=f(1+1);j=f2(1+1);
printf("%d%d/n",i,j);
[填空题]多态性具体体现运行和编译两个方面,在程序运行时的多态性通过继承和 【6】 来体现,而程序编译时多态性体现函数和运符的重载上。
[填空题]多态具体体现运行和编译两个方面,在程序运行时的多态性通过继承和 ______ 来体现,而程序编译时多态性体现函数和运符的重载上。
[填空题]下面程序和运行运行结果是【 】。
typedef union student
{ char name [10];
long sno;
char sex;
float score [4];
} STU;
main ( )
{ STU a[5];
prinff( "% d/n", sizeof(a) );
}