[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$flCw7k0ni55ToOXZ7NHwIgNNaN4scS7PrK7Gz6Tzbc4A":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2024-12-25 17:09:32",173932591,[8,9,10,11],"A)a=9,b=5","B) a=5,b=9","C) a=10,b=6","D) a=6,b=10",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},10,"aaa761014bc327f736e6ca2cff3e442c","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F808dfeb8ccbbda09f299cabbf0d78071.png","算法分析与设计","work_39861465","第4次作业","有下列程序 # include &lt;stdio.h&gt; void fun1(int *x,int *y) { int *z; z=x; x=y; y=z; } void fun2(int *x,int *y) { int z; z=*x; *x=*y; *y=z; (*x)++; (*y)++; } void main() { int a=5,b=9; fun1(&amp;a,&amp;b); printf(&quot;a=%d,b=%d\\n&quot;,a,b); fun2(&amp;a,&amp;b); printf(&quot;a=%d,b=%d\\n&quot;,a,b); } main函数中第二个printf输出结果为( )",[21,32,41,50,59,64,73,82,91,97],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],173932571,[25,26,27,28],"N(logN)2","N2logN","N3","Nlog(N2)","下列函数中,哪个函数具有最快的增长速度( )","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],173932573,[36,37,38,39],"ABDFECG","ABDEFCG","ABDFEGC","ABCDEFG","已知一个二叉树的后序和中序遍历的结果分别是FDEBGCA和FDBEACG,那么该二叉树的前序遍历结果是什么( )",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],173932575,[45,46,47,48],"7","14","21","49","对于7个数进行冒泡排序,最坏情况下需要进行的比较次数为( )",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],173932577,[54,55,56,57],"A)name=liming,old=18","B)name=wanghua,old=19","C)name=zhangping,old=20","D)name=hanpeng,old=21","有如下程序 struct man { char name[20]; int age; }person[]={&quot;liming&quot;,18,&quot;wanghua&quot;,19,&quot;zhangping&quot;,20,&quot;hanpeng&quot;,21}; int main(void) { int old; struct man *p=person,*q; q=p; old=p-&gt;age; for(;p&lt;=&amp;person[3];p++) if(old&lt;p-&gt;age) { q=p; old=p-&gt;age; } printf(&quot;name=%s,old=%d\\n&quot;,q-&gt;name,q-&gt;age); } 程序的运行结果为( )",{"answer":60,"createTime":5,"id":61,"options":62,"question":63,"source":30,"type":31},[],173932579,[54,55,56,57],"有如下程序 struct man { char name[20]; int age; }person[]={&quot;liming&quot;,18,&quot;wanghua&quot;,19,&quot;zhangping&quot;,20,&quot;hanpeng&quot;,21}; int main(void) { int old; struct man *p=person,*q; q=p; old=p-&gt;age; for(;p&lt;=&amp;person[3];p++) if(old&gt;p-&gt;age) { q=p; old=p-&gt;age; } printf(&quot;name=%s,old=%d\\n&quot;,q-&gt;name,q-&gt;age); } 程序的运行结果为( )",{"answer":65,"createTime":5,"id":66,"options":67,"question":72,"source":30,"type":31},[],173932581,[68,69,70,71],"12","27","36","都不是","一段文本中包含对象{ a,b,c,d,e},其出现次数相应为{ 3,2,4,2,1 },则经过哈夫曼编码后,该文本所占总位数为( )",{"answer":74,"createTime":5,"id":75,"options":76,"question":81,"source":30,"type":31},[],173932583,[77,78,79,80],"31","39","63","71","如果一个完全二又树最底下一层为第六层(根为第一层) 且该层共有8个叶结点,那么该完全二叉树共有多少个结点( )",{"answer":83,"createTime":5,"id":84,"options":85,"question":90,"source":30,"type":31},[],173932585,[86,87,88,89],"PPOPPOOOPO","POPPOPPOOO","POOPPPOPOO","PPPOOPOPOO","题单选如果一堆栈的输入序列是aAbBc,输出abcBA,那么该堆栈所进行的操作序列是什么?设P代表入栈,O代表出栈.( )",{"answer":92,"createTime":5,"id":93,"options":94,"question":96,"source":30,"type":31},[],173932587,[95,9,10,11],"A) a=9,b=5","有下列程序 # include &lt;stdio.h&gt; void fun1(int *x,int *y) { int *z; z=x; x=y; y=z; } void fun2(int *x,int *y) { int z; z=*x; *x=*y; *y=z; (*x)++; (*y)++; } void main() { int a=5,b=9; fun1(&amp;a,&amp;b); printf(&quot;a=%d,b=%d\\n&quot;,a,b); fun2(&amp;a,&amp;b); printf(&quot;a=%d,b=%d\\n&quot;,a,b); } main函数中第一个printf输出结果为( )",{"answer":98,"createTime":5,"id":6,"options":99,"question":19,"source":30,"type":31},[],[8,9,10,11]]