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 way to convert one data type into another data type.
Eg:
int i=17;
char c='c';
int sum;
sum=i+c;
printf("%d is the sum",sum);
the output will be : 116 is the sum
here it will take the asci value of c. 

C Language

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