Initialization - cppreference.com

en.cppreference.com

Tin mới

You are encouraged to create an account and log in; however, it is not mandatory

You are encouraged to log in; however, it is not mandatory [o]

Discussion about the content page (page does not exist) [t]

This page is protected. You can view its source [e]

Past revisions of this page [h]

c/compiler support

Variadic function support

Dynamic memory management

Date and time utilities

Input/output support

Localization support

Concurrency support

Technical Specifications

c/language/basic concepts

c/language/statements

c/language/expressions

c/language/declarations

c/language/functions

c/language/history

Scalar initialization

Array initialization

Struct and union initialization

c/language/compound literal

where designator-list is a list of either array designators of the form [ constant-expression ] or struct/union member designators of the form . identifier ; see array initialization and struct initialization.

c/language/storage duration

trap representations

constant expression

A declaration of an object may provide its initial value through the process known as initialization.

c/language/string literal

A declaration of an object may provide its initial value through the process known as initialization.

c/language/operator other

A declaration of an object may provide its initial value through the process known as initialization.

value initialization

There is no special construct in C corresponding to value initialization in C++; however, = {0} (or (T){0} in compound literals)(since C99) can be used instead, as the C standard does not allow empty structs, empty union

cpp/language/initialization

Special:Categories

Pages using deprecated source tags

Pages using deprecated enclose attributes

A list of recent changes in the wiki [r]

A list of all wiki pages that link here [j]

Recent changes in pages linked from this page [k]

A list of all special pages [q]

Permanent link to this revision of this page

More information about this page