Computer Science, asked by rahulguptaslg484, 1 year ago

What do you mean by implicit and explicit data type conversion?

Answers

Answered by amannishad0512p5zxh6
4

Implicit datatype conversion means  conversion of datatype by the compiler itself into bigger datatype is called implicit.It is done by compiler itself,Other names of this are widening/corencion/type promotion/Type casting

For ex-   char ch='A' ; int a=5,b;

b=ch+a;

b=65+5            // ASCII code of ch=65  that converts it into integer by compiler itself

b=70          

Explicit datatype conversion is the process of conversion of datatype by user choice into smaller datatype.It is depend on user or programmer.It is done forcefully by compiler.Other names are narrowing/type demotion

For ex-

int a=19,k; double d=2.4,;

k=a+d;

k=19+(int)2.4

k=21                         // as  it  is forcefully converted into integer.

Hope it will help you @

Mark me brainlest !!


amannishad0512p5zxh6: i am 1st to ansqwer
Answered by Anonymous
0

Implicit data type conversion :-

Implicit data type conversion :-In mixed expression, the data type of the result gets converted automatically into its higher type without intervention of the user. This system of type conversion is known as Implicit type conversion or coercion.

Explicit data type conversion :-

When the data type gets converted into another type after user intervention, the type conversion is known as explicit type conversion or forced conversion also as type casting.

xxxxxxxxxxxxxxxxxxxxxx

Similar questions