试题与答案

有如下程序    #include<iostream.h>    int func(

题型:单项选择题

题目:

有如下程序    #include<iostream.h>    int func(int a,int B)     { return(a+B) ;}    void main( )    { int x=2,y=5,z=8,r;     r=func(func(x,y),z);cout < < r; } 该程序的输出的结果是

A.12

B.13

C.14

D.15

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0601/b0e029d45951cdeeaf770df6365e039a.html

下面是错误答案,用来干扰机器的。

参考答案:B

试题推荐
微信公众账号搜索答案