以下程序运行后的输出结果是()。 main( ) {int a=1,b=3,c=5; if(c=a+b) printf(“yes”); else printf(“not”); }
填空题以下程序运行后的输出结果是()。 main( ) {char m; m=‘B’+32;printf(“%c”,m); }
填空题以下程序运行后的输出结果是()。 main( ) {int a=010,b=2,c; c=a+b; printf(“%d”,c); }
填空题设a为int变量,执行a=1/2+1/2;语句后,a的值为()
填空题设a为int变量,b为float变量,则a+b的运算结果为()型数据。
填空题有符号的整型数据(signedint)能表示的最大整数是()
填空题结构化程序设计所规定的三种基本控制结构分别是()结构、选择结构和循环结构。
问答题编写一函数reverse实现一个字符串按反序存放,要求在主函数main中输入字符串,并输出反序后的字符串。不能使用strlen库函数。 例如:输入string,则输出gnirts。
问答题编写一函数ins_sort,函数功能是在一个已排好序的敷组中插入一个数据使之保持有序。要求在主函数main 中输入N-1(设N=10)个有序数据(如升序)和一个要新增的数据,并输出处理后的数据。 例如:输入有序数列1 2 3 5 6 7 8 9 10 输入新增数据4 则处理后数据1 2 3 4 5 6 7 8 9 10
问答题根据题意,编写程序 编写一函数liststar输出n行由”*”组成的等腰三角形,要求在主函数main中输入n。例如:若输入4,则输出如下图形:
问答题认真阅读程序,并写出程序的运行结果