What is implicit and explicit data type conversion in C programming?

1 answer

Answer

1054760

2026-04-11 16:20

+ Follow

explicit type conversion is done by compile automatically

for example:

int x;

float y=10.4545

// to convert the value of float into int type we use

x=y; //automatic conversion

while if we force to convert one data type to another then it is called implicit

for example:

int x;

float y=10.4545

// to convert the value of float into int type we use

x= (int)y; //forced conversion

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.