Converting a data type of an expression to another data type is known as type conversion. Here expression refers to either a variable or value or sub expression. There are two types of conversions. They are: Implicit conversion or Coercion Explicit conversion or Casting Implicit Conversion While evaluating expressions, it is common to have operands of different data types. C automatically converts the data type of operands or any intermediate values to the proper type so that expression can be evaluated without losing any significance. This automatic conversion performed by C is known asimplicit conversion. In C, the expression on
The post How to perform Type Conversion and Type Casting in C – Programming appeared first on Coding Security.
How to perform Type Conversion and Type Casting in C – Programming
read more
Tidak ada komentar:
Posting Komentar