MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Conversion from one type to another is said to be ____ if it is done automatically by the compiler.
A
explicit
B
implicit
C
both
D
none of these
Explanation: 

Detailed explanation-1: -The implicit type conversion is also called automatic type conversion as it is automatically done by a compiler.

Detailed explanation-2: -The compiler also automatically converts arithmetic values in the following cases: In assignments and initializations, the value of the right operand is always converted to the type of the left operand.

Detailed explanation-3: -An implicit conversion sequence is the sequence of conversions required to convert an argument in a function call to the type of the corresponding parameter in a function declaration. The compiler tries to determine an implicit conversion sequence for each argument.

Detailed explanation-4: -There are two type of type conversion: implicit and explicit type conversion in C. Implicit type conversion operates automatically when the compatible data type is found.

There is 1 question to complete.