C++ Type Checking Question:
Download Questions PDF

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);
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

C++ Type Checking Interview Question
C++ Type Checking Interview Question

Answer:

c) both 1 and 2 are true

Download C++ Type Checking Interview Questions And Answers PDF

Previous QuestionNext Question
How many characters are specified in the ASCII scheme?
a) 64
b) 128
c) 256
d) none of the mentioned?
Which of the following belongs to the set of character types?
a) char
b) wchar_t
c) only a
d) both a and b