Sail E0 Webinar
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);


Options:
A .  1 is true but 2 is false
B .  1 is false and 2 is true
C .  both 1 and 2 are true
D .  both 1 and 2 are false
Answer: Option C

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers