Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.6 KB

assignment-conversions.md

File metadata and controls

34 lines (27 loc) · 1.6 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
Assignment Conversions | Microsoft Docs
11/04/2016
cpp-language
article
C++
conversions, assignment
assignment conversions
4ee01013-de32-4aae-b12e-0051d0cde927
7
mikeblome
mblome
ghogen

Assignment Conversions

In assignment operations, the type of the value being assigned is converted to the type of the variable that receives the assignment. C allows conversions by assignment between integral and floating types, even if information is lost in the conversion. The conversion method used depends on the types involved in the assignment, as described in Usual Arithmetic Conversions and in the following sections:

Type qualifiers do not affect the allowability of the conversion although a const l-value cannot be used on the left side of the assignment.

See Also

Type Conversions