.h头文件中的ifndef/define/endif 的作用?
第1题:
A.iostream.h
B.iomanip.h
C.istream.h
D.ostream.h
第2题:
A.5
B.6
C.8
D.9
第3题:
下面的程序输出结果是 ______。 #define r 16 #if r==16 void p(int a) { printf("%x",a) ; } #else void p(int a) { printf("%d",a) ; } #endif main() { p(32); }
A.32
B.20
C.编译时错误
D.运行时错误
第4题:
程序中头文件typel.h的内容是: #define N 5 #define M1 N *3 程序如下: #include“typel.h” #define M2 N*2 main() { int i; i=M1+M2;Printf(“%d\n”,0; } 程序编译后运行的输出结果是:
A.10
B.20
C.25
D.30
第5题:
头文件中的 ifndef/define/endif 干什么用?
第6题:
程序中头文件typel.h的内容是 #define N 5 #define M1 N*3 #define "typel .h" #define M2 N*2 main ( ) { int i; i=M1+M2; printf ("%d\n", i ); } 程序编译后运行的输出结果是
A.10
B.20
C.25
D.30
第7题:
C++源文件中包含的输入/输出头文件为( )。
A.stdio.h
B.stdafx.h
C.iostream.h
D.stream.h
第8题:
C语言提供的预处理功能包括条件,其基本形式为: #×××标识符 程序段1 #else 程序段2 #endif 这里的×××可以是( )
A.define或include
B.ifdef或include
C.indef或ifndef或define
D.ifdef或ifndef或if
第9题:
用#include包含的头文件的后缀必须是.h。
第10题:
printf函数是一个标准库函数,它的函数原型在头文件"string.h"中。
第11题:
iostream.h
iomanip.h
istream.h
ostream.h
第12题:
第13题:
程序中头文件type1.h的内容是( )。 #define N 5 #define M1 N*3 程序如下: #define "type1.h" #define M2 N*2 main() { int i; i=M1+M2; printf("%d\n",i); } 程序编译后运行的输出结果是( )。
A.10
B.20
C.25
D.30
第14题:
程序中头文件type1.h 的内容是#define N 5#define M1 N*3程序如下:#define "type1.h"#define M2 N*2main (){ int i; i=M1+M2; printf("%d\n", i);) 程序编译后运行的输出结果是( )。
A.10
B.20
C.25
D.30
第15题:
下列程序的运行结果为______。 #define MS DOS #ifdef MS DOS #define INTEGER SIZE 32 #else #define INTEGER SIZE 16 #endif main () { printf ("integer_size=%d\n", INTEGER_SIZE); }
A.integersize=32
B.integer_size=16
C.integersize=32,integer_size=16
D.错误
第16题:
请解释aaa.h 中下面代码的功能
#if !defined(AFX_MYSUDU_H__9B952BEA_A051_4026_B4E5_0598A39D2DA4__INCLUDE
D_)
#define AFX_MYSUDU_H__9B952BEA_A051_4026_B4E5_0598A39D2DA4__INCLUDED_
... ...
#endif
第17题:
4:头文件ifdef/define/endif的作用?
第18题:
strlen()是一个计算字符串长度的这么一个库函数,这个库函数是定义在string.h这个头文件里的,要想使用这个库函数就必须调用预处理命令将string.h添加到当前的代码中,可是为什么在调用string.h这个头文件的基础上还要调用stdio.h这个头文件呢?stdio.h只是一个输入输出函数的这么一个头文件,跟strlen()库函数有什么关系,,,求解。
第19题:
在C++程序中,使用基本输入输出流需要包含的头文件是( )。
A.stdio.h
B.stdafx.h
C.iostream.h
D.stream.h
第20题:
.h头文件中的ifndef/define/endif 的作用?#i nclude< file.h > 与#i nclude "file.h"的区别?
第21题:
使用putchar函数时,必须在之前包含头文件stdio.h
第22题:
在C51程序中,把“reg51.h”头文件包含在程序中,就直接使用SFR名称和位名称。()
第23题: