112k views
2 votes
.A(n) ____________ conversion occurs when C# converts one data type to another and the programmer has not provided code to perform the conversion.

a.explicit

b.implicit

c.narrowing conversion

d.widening

User Rakitha
by
7.8k points

1 Answer

0 votes

Answer:

The correct answer for the given question is option(b) i.e "Implicit conversion".

Step-by-step explanation:

Implicit conversion converts one datatype to another without forcefully .it convert the one datatype to another automatically.The implicit type is a type safe conversion .

For example

int i = 57;

float f = l; // convert i to f without forcefully.

The explicit conversion converts one datatype to another forcefully .This type of conversion is not a type safe conversion.

double d = 765.12;

int i = (int)d; // convert d to i forcefully

so the correct option is option(b).

User Umang
by
8.4k points