Page 93 - C Programming
P. 93

ตัวอย่างที่ 7-6 ตัวอย่างการเขียนฟังก์ชัน





                        #include<stdio.h>


                        void sub_function();


                        main()


                        { clrscr();


                           printf("Function Main\n");


                           printf("Press any key for call sub function\n");


                           getch();


                           sub_function();


                        }/*End of funtion main*/


                        void sub_function()


                        { printf("Sub function");


                           getch();


                          } /*End of sub_function*/
   88   89   90   91   92   93   94   95   96   97   98