题目详情
单选题 以下程序的运行结果是( ) #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; }

学科:默认课程
时间:2025-12-27 08:12:46
