2074 5

C Programming20745 marksData types

What is type conversion? Discuss type casting with suitable example.

What is type conversion? Discuss type casting with suitable example. [5]

Type conversion is the process of converting a value from one data type to another data type. In C, since different variables have different data types (int, float, char, double, etc.), it is sometimes necessary to convert a value of one type into another type for proper computation or assignment...

Up nextWrite a program that computes the sum of digits of a given integer number.