Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.39 KB

assignment-conversions.md

File metadata and controls

26 lines (17 loc) · 1.39 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Assignment conversions
Assignment conversions
11/04/2016
conversions, assignment
assignment conversions
4ee01013-de32-4aae-b12e-0051d0cde927

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