题目内容

若有以下程序段: #include <iostream> using namespace std; int main () int a[]=1,4,5; int *p=&a[0],x=6, y,z; for (y=0; y<3; y++) z= ( (* (p+y) <x) *(p+y) :x); cout<<z<<end1; return 0; 程序运行后的输出结果是( )。

A. 1
B. 4
C. 5
D. 2

查看答案
更多问题

Tom’s story was so (fun)()that we couldn’t keep ourselves from laughing.

The ATMs enable bank customers (access) ______ their money 24 hours a day and seven days a week wherever ATMs are located.

以下程序的输出结果为 【7】 。 #include<iostream> using namespace std; void initialize(int printNo,int state=0); void initialize(int printNo=l,int state); int main() initialize(); return 0; void initialize(int printNo,int state) cout<<printNo<<","<<state<<end1;

以下程序运行后的输出结果是 【6】 。 #include<iostream> using namespace std; int main() int i=10,i:0; do j=j+i; i--; while(i>2); cout<<j<<end1; return 0;

答案查题题库