填空题

以下程序运行后的输出结果是 【8】 。
#include <stdio, h>
main( )
int a=3,b=4,c=5,t=99;
if(b<a && a<c) t=a;a=c;c=t;
if(a<e && b<c) t=b;b=a;a=t;
printf( "%d %d %d \n" ,a,b,e);

【参考答案】

4599
<上一题 目录 下一题>
热门 试题

填空题
以下程序运行后的输出结果是 【7】 。 #include <stdio.h> #define S(x) 4 * x * x + 1 main( ) int i=6,j=8; prinff( % d n , S( i + j) );
填空题
以下程序中函数huiwen的功能是检查一个字符串是否是回文,当字符串是回文时,函数返回字符串“yes!”,否则函数返回字符串“no!”,并在主函数中输出。所谓回文即正向与反向的拼写都一样,例如:adsda。请填空。 #include <stdio, h>#include <string, h>char * huiwen(char * str) char *p1, * p2; int i,t=0; p1 = str;p2 = 【10】 ; for(i =0;i<= strlen(str) 2;i ++ ) if( * pl ++ ! = * p2 -- ) t = 1 ;break if( 【11】 ) return( yes ! ); else return( no! );main( ) char str[50]; printf( Iaput: ); scanf( % s , str); printf( %s n , 【12】 );
相关试题
  • 以下程序运行后输出结果是 【18】 。#...
  • 以下程序运行后的输出结果是 【17】 。...
  • 以下程序中,fun函数的功能是求3行4列二...
  • 以下程序运行后的输出结果是 【16】 。...
  • 以下程序运行后输出结果是 【20】 。 ...