2074 5

CSC115 ยท 2074 ยท 5 marks

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

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

C ProgrammingChapter 2: Elements of CData types

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...