TAILIEUCHUNG - the ansi c programming phần 9

Sự phát triển của C là kết quả của các lập trình viên đã muốn chơi Space Travel. Họ đã chơi nó trên mainframe của hãng làm việc, nhưng bị thiếu khả năng (chạy) và phải hỗ trợ khoảng 100 người dùng, Thompson và Ritchie tìm thấy rằng họ đã không có đủ sự kiểm soát tàu vũ trụ (của trò chơi) để tránh được các va chạm khỏi sự chuyển dịch của các thiên thạch. Do đó, họ quyết định để xuất trò chơi này sang một máy PDP-7 để không trong văn phòng | 169 Less latitude is allowed for the integral constant expressions after if sizeof expressions enumeration constants and casts are not permitted. See . Declarations Declarations specify the interpretation given to each identifier they do not necessarily reserve storage associated with the identifier. Declarations that reserve storage are called definitions. Declarations have the form declaration declaration-specifiers init-declarator-listopt The declarators in the init-declarator list contain the identifiers being declared the declaration-specifiers consist of a sequence of type and storage class specifiers. declaration-specifiers storage-class-specifier declaration-specifiersopt type-specifier declaration-specifiersopt type-qualifier declaration-specifiersopt init-declarator-list init-declarator init-declarator-list init-declarator init-declarator declarator declarator initializer Declarators will be discussed later they contain the names being declared. A declaration must have at least one declarator or its type specifier must declare a structure tag a union tag or the members of an enumeration empty declarations are not permitted. Storage Class Specifiers The storage class specifiers are storage-class specifier auto register static extern typedef The meaning of the storage classes were discussed in . The auto and register specifiers give the declared objects automatic storage class and may be used only within functions. Such declarations also serve as definitions and cause storage to be reserved. A register declaration is equivalent to an auto declaration but hints that the declared objects will be accessed frequently. Only a few objects are actually placed into registers and only certain types are eligible the restrictions are implementation-dependent. However if an object is declared register the unary operator may not be applied to it explicitly or implicitly. The rule that it is illegal to calculate the address of an .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.