ISO/IEC 9,899:2011 clause 6.9.2--external object definition

Source: Internet
Author: User

6.9.2 External Object definitions

Semantic

1. If the declaration of an object's identifier has a file scope and an initializer, then the declaration is an external definition of the identifier.

2. A declaration that has a file scope and does not have an initializer, does not have a storage-class specifier, or has an identifier for the object that stores the class descriptor static , constitutes an experimental definition . If a translation unit contains one or more experimental definitions for an identifier, and the translation unit does not contain an external definition of this identifier, then the behavior is exactly like the translation unit contains a file scope declaration of this identifier, with a composite type to the end of this translation unit, and has an initializer equal to 0.

3. If the declaration of an identifier for an object is an experimental definition and has an internal connection, the declared type should not be an incomplete type.

4, Example 1

ISO/IEC 9,899:2011 clause 6.9.2--external object definition

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.