, . . , main():
inttemp; main()temp , , . , 3. temp main(), convert(), freeze() boil(). , main(), . celsius. celsius convert(), , , , , convert().
3. , .
/*f_to_c.c*/int temp;main() { printf(" : "); scanf("%d", &temp); convert(); freeze(); boil(); }convert() {floatcelsius; celsius = (5.0 / 9.0) * (temp - 32); printf("%d %6.2f \ \n", temp, celsius); return(0); }freeze() { printf(" %d \n", temp-32); return(0); }boil() { printf(" %d \n", 212-temp); return(0); }, , , .
() , . . , .
, , , . , , , .
, , , , . :
myfunc() { staticintcount; }. , , , . , . , .
, , . , 4. . doit() , 0, printf(). , . , 0, :
autovar 0 statvar 0 autovar 0 statvar 0 autovar 0 statvar 0 autovar 0 statvar 0