what is meant by Type casting?

Explain your own answer with proper example?

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

type casting is a process of converting the variable from one datatype to another datatype. ex: we are declaring variable m as int. int m; we want to change the variable to float as placing the (float) datatype to the variable. int m=10; float p; p=(float)m; The output is m=10 and p=10.0 The output is

C Language

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