填空题
以下程序运行后的输出结果是【 】。 main( ) { int x=15; while(x>10 &&x<50) { x++; if(x/3){ x++;break;} else continue; } printf("%d\n",x); }
【参考答案】
Q
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
下列程序中的函数strcpy2()实现字符串两次复制,即将t所指字符串复制两次到S所指内存空间中,全并形成一个新字符串。例如。若t所指字符串为:efgh,调用strcpy2后,S所指字符串为:efghefgh。请填空。#include #include void strcpy2(char *S,char *t){char*P=t; while(*S++=*t++);S=【 】; while(【 】=*P++);}main () char str1[100]= abcd ,str2[]= efgh ;strcpy2(strl,str2);printf( %s\n ,str1); }
点击查看答案&解析
填空题
以下程序运行后的输出结果是【 】。main(){char c; int n=100;float f=10; double x;x=f*=n =(c=50);printf( %d %f n ,n,x);}
点击查看答案&解析
相关试题
一棵二叉树第六层(根结点为第一层)的结点...
以下程序的输出结果是【 】。#include m...
以下程序的功能是:输出100以内(不含1...
设有定义:float x=123.4567;,...