题海让大学四年没有难题
白天模式登陆

题目详情

单选题 以下程序的运行结果是( ) #include <iostream> using namespace std; void swap(int y[]) { int t; t=y[0];y[0]=y[1];y[1]=t; cout<<y[0]<<" "<<y[1]<<endl; } int main() { int x[2]={3,4}; swap(x); cout<<x[0]<<" "<<x[1]<<endl; system("pause"); return 0; }

A. 3 4 4 3

B. 4 3 4 3

C. 3 4 3 4

D. 4 3 3 4

默认课程课程封面

学科:默认课程

时间:2025-12-27 08:12:46

Copyright © 2022 津ICP备2021001502号