Home » , » C - Typecasting

C - Typecasting

 C - Typecasting

Type casting in C Language converts one type to another. In C language, we use the cast operator for type casting:




Let us now see some examples of Type Conversion and convert one datatype to another.

Convert int to float in C

We typecast and convert int to float type:




Output


Convert int to double in C

We typecast and convert int to double type:



Output



If you liked the tutorial, spread the word and share the link and our website LANGUAGE CODING with others.

0 comments:

Post a Comment

Popular Posts

GENRES

 
Copyright ©

latest code update bloggingskillBest coding website in india

Created By Sora Templates | Distributed By Gooyaabi Templates