3 - [Basic] - [Basic]

xiaoxiao2021-03-06  143

Please don't reprint this article; please don't re-publish this article in any form; please delete it within 24 hours of downloading this article; it is forbidden to use this article for commercial purposes.

3 Basic concepts [basic] 3 Basic Concepts [Basic] [Note:. This clause presents the basic concepts of the C language It explains the difference between an object and a name and how they relate to the notion of an lvalue It introduces the. concepts of a declaration and a definition and presents C 's notion of type, scope, linkage, and storage duration. The mechanisms for starting and terminating a program are discussed. Finally, this clause presents the fundamental types of the language and lists the ways of constructing Companted Types from these. [Note: This chapter introduces the basic concept of the C language. This chapter explains the difference between objects and names, and how they are associated with the left value concept. This chapter puts forward the concepts and definition concepts and introduces C types, scope, connectivity, and storage types. Discussion the mechanism of the program start and termination. Finally, this chapter describes the basic type of this language and lists methods for constructing a combined type. This Clause Does Not Cover Concepts That Affect Only A Single Part of The Language. Such Concepts Are Discussed In The Relevant Clauses. This chapter does not involve only a useful concept only for languages. These concepts will be discussed in its related chapters. 】 An Entity Is A Value, Object, SubObject, Base Class Subobject, Array Element, Variable, Function, Instance of A Function, Enumerator, Type, Class Member, Template, or Namespace. Entity is a value, object, sub-object, base Union objects, array elements, variables, functions, functions, enumeration, type, class members, templates, or name space. A Name Is A Use of An Identifier (2.10) That Denotes An Entity OR Label (6.6.4, 6.1). A variable is introducted by The Declaration of an Object. The Variable's name Denotes the object. The name is an entity indicating an entity or The use of the identifier (2.10) of the label (6.6.4, 6.1). The variable is introduced by the statement of the object. The name of the variable indicates the object.

Every Name That Denotes an entry. Every name That Denotes a label is introduces (6.6.4) OR a Labled-Statement (6.1). The declaration introduced each indicated name . The name of each indicator tag is introduced by a goto statement (6.6.4) or label statement (6.1). some names denote types, classes, enumerations, or templates. In general, it is necessary to determine whether or not a name denotes one of these entities before parsing the program that contains it. The process that determines this is called name lookup (3.4) Some names indicate types, classes, enumerations, or templates. Before parsing a program, you usually need to determine if a name indicates these entities. The process of determining this information is called a name lookup (3.4). Two names are the same ifthey are identifiers composed of the same character sequence; or they are the names of overloaded operator functions formed with the same operator; or they are the names of user-defined conversion functions formed with the same type the following cases. Think two names:

转载请注明原文地址:https://www.9cbs.com/read-98128.html

New Post(0)