what is meant by Type casting?

Explain your own answer with proper example?

  • Rahul
  • 12 Jul
  • 14188 Views
  • 42 Answers
Your Answer

Type casting is a way to convert a variable from one data type to another data type. For example, if you want to store a 'long' value into a simple integer then you can type cast 'long' to 'int'. for example; int sum = 17, count = 5; double mean; mean = (double) sum / count;

C Language

Didn't get the answer.
Contact people of Talent-C Language directly by clicking here