Suppose that i and j are variable of type int What is the ty

Suppose that i and j are variable of type int. What is the type of the expression i / j + ‘a\'.

Solution

Answer: The type of the expression i / j + ‘a\' is integer

Lets take an exmaple

if i = 4 and j =2 then this expression will give result 99.

becuase 4/2 = 2 + \'a\' character ascii value is 97 = 2 + 97 = 99.

Suppose that i and j are variable of type int. What is the type of the expression i / j + ‘a\'.SolutionAnswer: The type of the expression i / j + ‘a\' is intege

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site