网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
有以下程序:include define P 3void F(int x) {return(P* x* x); tmain( ){printf("

有以下程序:#include <stdio.h>#define P 3void F(int x) { return(P* x* x); tmain( ){ printf(" % d \n" ,F(3 + 5) ); }程序运行后的输出结果是( )。

A.192

B.29

C.25

D.编译出错


参考答案

更多 “ 有以下程序:include define P 3void F(int x) {return(P* x* x); tmain( ){printf(" 有以下程序:#include <stdio.h>#define P 3void F(int x) { return(P* x* x); tmain( ){ printf(" % d \n" ,F(3 + 5) ); }程序运行后的输出结果是( )。A.192B.29C.25D.编译出错 ” 相关考题
考题 下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int 下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5

考题 有以下程序,请在 处填写正确语句。使程序可正常编译运行。include;mairl();{double x,y,(*p)():scanf(“%If%If”,x,y);P=avg;printf(“%f\n”,(*p)(x,y));}double avg(double a,doublc b){return((a十b/2):

考题 请将以下程序中的函数声明语补充完整。 include int【】 main(){int x,y,(*p)(); sccanf(" 请将以下程序中的函数声明语补充完整。include<stdio.h>int【 】main(){ int x,y,(*p)();sccanf("%d%d",x,y);p=max;printf(%d\n",(*p)(x,y));}int max(int a,int b){return(a>b?a:b);}

考题 下列程序的运行结果是______。includelong func(int x){ long p;if(x==O‖x==1)return(1) 下列程序的运行结果是______。include<stdio.h>long func(int x){ long p;if(x==O‖x==1)return(1);p=x*func(x-1);return(p);}main(){ printf("%d\n",func(4));}

考题 有以下程序includeint f(intx){inty; if(x==0||x==1)return(3); y=x*x-f(x-2); return 有以下程序 #include <stdio.h> int f(int x) { int y; if(x==0||x==1) return(3); y=x*x-f(x-2); return y; } main() { int z; z=f(3); printf("%d\n",z); } 程序的运行结果是A.0B.9C.6D.8

考题 以下程序的输出结果是include "stdio.h"int *f(int *x,int *y){ if(*x*y) return x; else return y;}main(){ int a=7,b=8, *p,*q,*r ; p=a; q=b; r= f(p,q); printf("%d,%d,%d\n",*p,*q,*r);}

考题 以下程序的输出结果是()。includedefine F(x)2.84+xdefine w(y)printf("%d",(int)(y) 以下程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y) main() {int x=2; P(F(5)*x); }A.12B.13C.14D.16

考题 写出以下程序的执行结果。#include "stdio.h" void f13(int y,int *x) { y=y+*x; *x=*x+y; } int main() { int x=2,y=4; f13(y,x); printf("%d,%dn",x,y); return 0; }

考题 要求通过函数调用交换两个变量的值。 #include <stdio.h> void swap(int *p, int *q) { int a; a = *p; ; ; } int main() { int x, y; x = 3; y = 5; swap(x, y); printf(“ x=%d y=%dn”, x, y); return 0; }