Question
Select the right option.
Given the variables p, q are of char type and r, s, t are of int type
1. t = (r * s) / (r + s);
2. t = (p * q) / (r + s);
Answer: Option C
Was this answer helpful ?
Every character constant has an integer value. Also char belongs to the integral type hence arithmetic
and logical operations can be performed on them.
Was this answer helpful ?
Submit Solution