【文章內(nèi)容簡(jiǎn)介】
的第一個(gè)程序 */ include int main(void) { printf(”hello world”)。 return 0。 } C語(yǔ)言概述 簡(jiǎn)單的C程序介紹 [例 ] include main() { printf(“This is a c program”)。 } [例 ] include main() /*求兩個(gè)數(shù)之和 */ { int a,b,sum。 a=123。b=456。sum=a+b。 printf(“sum is %d\n”,sum)。 } sum is 579 This is a program C語(yǔ)言概述 簡(jiǎn)單的C程序介紹 [例 ] include main() { int a,b,c。 scanf(“%d,%d”,amp。a,amp。b)。 c=max(a,b)。 printf(“max= %d\n”,c)。 } int max(x,y) int x,y。 { int z。 if(xy) z=x。 else z=y。 return(z)。 } max=12 12,8↓ 至于如何實(shí)現(xiàn)對(duì)函數(shù)的調(diào)用呢 ? 請(qǐng)看下例 (求