基本變數型別:Type Descriptionchar Typically a single octet(one byte). This is an integer type.int The most natural size of integer for the machine.float A single-precision floating point value.double A double-precision floating point value.void Represents the absence of type. C程式語言還可以定義各種其他型別的變數,如列舉,指標,陣列,結構,聯合等。
變數是一個名字對映到一個儲存區域,方便我們的程式操縱。在C中的每一個變數有一個特定的型別,它決定了變數的儲存器的大小和構造範圍。變數名可以由字母,數字和下劃線字元。它必須以字母或下劃線開始。大寫字母和小寫字母是不同的,因為C語言是區分大小寫的。
基本變數型別:Type Descriptionchar Typically a single octet(one byte). This is an integer type.int The most natural size of integer for the machine.float A single-precision floating point value.double A double-precision floating point value.void Represents the absence of type. C程式語言還可以定義各種其他型別的變數,如列舉,指標,陣列,結構,聯合等。