以下程序的输出结果是______。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a) printf("%d",(int)(a)) #define PRINT1(a) PR(a);putchar('\n') main() { int x=2; PRINT1(FUDGE(5)*x); }
A.11
B.12
C.13
D.15
第1题:
下列程序的输出结果是______。#include<stdio.h>#define FUDGE(y) 2.84+y#define PR(a) printf("%d",(int)(a))#define PRINTl(a) PR(a);putchar('\n')main (){ int x=2; PRINT1(FUDGE(5)*x);}
A.11
B.12
C.13
D.15
第2题:
在C程序中如果要使用数学函数,如sin(x),log(x)等,需要在程序中加入的语句是
A.#include <math.h>
B.#include <stdio.h>
C.#define <math.h>
D.#define <stdio.h>
第3题:
6、用scanf和printf函数时要用以下哪个语句导入头文件?
A.#include<std.h>
B.#include<stdio.h>
C.#define<stdio.h>
D.#include stdio.h
第4题:
以下程序的输出结果是【 】。
include <stdio.h>
main()
{ int n=12345, d;
while(n!=O){ d=n%10; printf("%d",d); n/=10; }
第5题:
在C程序中如果要使用数学函数,如sqrt(x),pow(x,y)等,需要在程序中加入的语句是______
A.#define <math.h>
B.#define <stdio.h>
C.#include <stdio.h>
D.#include <math.h>