Type Cast Operator in C



Type Casting is basically a process in C in which we change a variable belonging to one data type to another one. In type casting, the compiler automatically changes one data type to another one depending on what we want the program to do. For instance, in case we assign a float variable (floating point) with an integer (int) value, the compiler will ultimately convert this int value into the float value. The process of casting allows the programmers to make such types of conversions explicit or even force it in cases where it wouldn’t happen normally.




Examples:







Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.