Assignment Operator

We will take one example :

i = 10 ;

i = j ;

Note that right side of assignment operator should be a variable or a constant.

ex : 10 = i ;

->Above iteration is totally wrong you cannot write like that.

->This is called ” L- value Error

Implicit and Explicit type casting :

Compiler convert Lower data bytes into Higher data bytes to equalization, which is called Implicit type casting/ Type conversion / Type promotion.

i.e. k = i*(unsigned long long int) j;


If programmer intentionally wants to convert for temporary purpose, its called Explicit type casting.




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Powered by

Up ↑

%d bloggers like this: