Implicit Subtyping

What is Implicit Subtyping?

Questions by satya2007200

Showing Answers 1 - 3 of 3 Answers

In C language the compiler will do implicit type conversion from one intrinsic type to another ex


//***********

int a;
a=123.23;
printf("%d",a);
//**************


The compiler will prompt no err as it does convert double to int type implicitly.
But compiler will prompt err in case of user defined types conversion coz there you need explicit conversion routines or constructors.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions