1.

How are the following two statements different?char pcode = 75;short pcode = 75;

Answer»

The first statement treats 75 as ascii value and converts it into its relative character ‘K’ whereas second statement treats 75 as number.



Discussion

No Comment Found

Related InterviewSolutions