填空题

以下程序运行后的输出结果是 【13】 #include <stdio, h> fun( int a) { int b = 0; static int c = 3; b++;c++; return(a + b + c); } main( ) int i,a = 5; for(i =0;i <3;i ++ ) prinff("% d% d" ,i,fun(a) ); printf(" \n" ); }

【参考答案】

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

填空题
有下面的程序:#include <stdio, h>main ( ){ enum team {my,your=4,his,her=his+10};prinff( % d %d %d %d n ,my,your,his,her);此程序的输出结果是 【15】 。A) 0 1 2 3 B) 0 4 0 1 0 C) 0 4 5 1 5 D) 1 4 5 1 5
填空题
以下程序中函数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 ;breakif( 【11】 ) return( yes ! );else return( no! );}main( ) { char str[50];printf( Iaput: ); scanf( % s , str);printf( %s n , 【12】 );
相关试题
  • 以下程序运行后输出结果是 【20】 。#...
  • 以下程序运行后的输出结果是 【19】 。...
  • 以下程序运行后输出结果是 【18】 。#...
  • 以下程序运行后的输出结果是 【17】 。...
  • 以下程序中,fun函数的功能是求3行4列二...