Implicit and Explicit declaration

Here i wish to share a very good example which i came through,

Implicit - partial; programmer does partial,other did by compiler
Explicit - fully;programmer does completely.

E.g.
int implicit;
implicit = 6.5;

compiler converts(implies) the value to integer data type.

int explicit;
explicit = (int)6.5;

Here programmer type casting(explicitly) the value to the integer data type.

Comments

Cookies are required to use this site. You must accept them to continue using the site. Learn more…