1.

What is the difference between statements (i) and (ii) (i) t = 2; (ii) if (t == 2) d = 3;

Answer»

In (i) variable‘t’ is being assigned the value 2 whereas in (ii) ‘t’ is being checked for equality with 

OR 

In (i) assignment operator is used and in (ii) relational operator ‘==’ is used.



Discussion

No Comment Found

Related InterviewSolutions