Javatpoint Logo
Javatpoint Logo

Type Casting in C

Typecasting allows us to convert one data type into other. In C language, we use cast operator for typecasting which is denoted by (type).


Note: It is always recommended to convert the lower value to higher for avoiding data loss.

Without Type Casting:

With Type Casting:

Type Casting example

Let's see a simple example to cast int value into the float.


f : 2.250000
Next TopicFunctions in C

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA