第1章习题 一、单项选择题 1.C语言程序的执行,总是起始于【 】。 A) 程序中的第一条可执行语句〖〗B) 程序中的第一个函数〖〗 C) main函数〖〗D) 包含文件中的第一个函数分析:在一个C语言源程序中,无论main函数书写在程序的前部,还是后部,程序的执行总是从main函数开始,并且在main函数中结束。 本题正确答案为C。 2.下列说法中正确的是【 】。 A) C程序书写时,不区分大小写字母 B) C程序书写时,一行只能写一个语句 C) C程序书写时,一个语句 可分成几行书写 D)
void sort1(int a[],int n); //函数原型定义在下面 void sort(int a[],int b[],int n); int main() { int aa[5]; //存储你输入的5个数字 int bb1[5]; //存储你输入的5个数经过,个,十 ,百位排序后的数 int bb[5]; //存储最终排序数 int c[4]; //存储一个数的,个,十 ,百,千位的数 int b[5]; //存储千位 int i,j,k,temp,gew,shiw,baiw,qi
几个c程序,希望有用 include /* In the VMS compiler, M_PI is not defined in math.h */ #ifdef vms #define M_PI 3.14159265358979323846 #endif #ifndef KR #define M_PI 3.14159265358979323846 #endif #define FALSE 0 #define TRUE 1 #define BIG 1e10 #define SMALL 1e