填空题函数swap(arr,n)可完成对arr数组从第1个元素到第n个元素两两交换。在运行调用函数中的语句后,a[0]和a[1]的值分别为 【9】 。 a[0]=1;a[1]=2;swap(a,2);
填空题设有以下程序: #include<iostream> using namespace std; int main() int a,b,k:4,m=6,*p1=&k,*p2=&m; a=p1==&m; b=(*p1)/(*p2)+7; cout<<a<<b<<end1; return 0; 执行该程序后,a的值为 【7】 ,b的值为 【8】 。