本文用於個人學習,
所有內容皆是於此網站習得,整理成個人筆記。
所有內容皆是於此網站習得,整理成個人筆記。
C語言入門教室 -1 :關於C
- C語言的特性:
- 可以像組合語言一樣進行硬體之直接存取
- 是以種語法規則簡單,容易使用的結構化語言
- 必要時可以與組合語言連結
- 可攜性(Portablilty)極佳,跨平台能力強
- C語言的執行過程:
- 原始程式碼(Source.c) >> 經由編譯器(Compiler) >> 變成目的檔 (Source.obj)>> 經由連結器(Linker) >> 變成執行檔(Source.exe)
- 標準的C語言格式:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include < stdio.h > -------------------------> 前置處理器 | |
main( ) --------------------------------------> 主程式 | |
{ | |
int i=0 ; /* 變 數 宣 告 */ | |
i=i+1; /* 算 數 運 算 */----------------------> 程式主體 | |
printf("i=%d\n",i) ; /* 輸 出 至 螢 幕 */ | |
} | |
subroutine( ) --------------------------------> 副程式 | |
.. | |
.. | |
subroutine( ) --------------------------------> 副程式 | |
.. | |
.. |
名詞解釋:
留言
張貼留言