Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1.17 KB

initialization.md

File metadata and controls

24 lines (22 loc) · 1.17 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Initialization | Microsoft Docs
11/04/2016
cpp-language
article
C++
initializers, variable
types [C], initializing
initializing variables
initializers
f009ee12-3df6-4260-b7e4-a6149ebb95aa
7
mikeblome
mblome
ghogen

Initialization

An "initializer" is a value or a sequence of values to be assigned to the variable being declared. You can set a variable to an initial value by applying an initializer to the declarator in the variable declaration. The value or values of the initializer are assigned to the variable.

The following sections describe how to initialize variables of scalar, aggregate, and string types. "Scalar types" include all the arithmetic types, plus pointers. "Aggregate types" include arrays, structures, and unions.

See Also

Declarations and Types