COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Widening Conversion, a type conversion rule, is used to preserve ____ in language.
A
semantic
B
information
C
type
D
syntax
Explanation: 

Detailed explanation-1: -Type Conversion refers to conversion from one type to another. The main idea behind type conversion is to make variable of one type compatible with variable of another type to perform an operation. For example, to find the sum of two variables, one of int type & other of float type.

Detailed explanation-2: -A widening conversion changes a value to a data type that can allow for any possible value of the original data. Widening conversions preserve the source value but can change its representation. This occurs if you convert from an integral type to Decimal, or from Char to String .

Detailed explanation-3: -The possible types of conversion are standard conversion, no conversion, and user-defined nonstandard conversion. This applies to: Single-byte character sets (SBCS)

There is 1 question to complete.