C++ Type Checking Question:
Download Questions PDF

Which of the following statements are true?
int f(float)
a) f is a function taking an argument of type int and retruning a floating point number
b) f is a function taking an argument of type float and returning a integer.
c) f is a function of type float
d) none of the mentioned

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

Answer:

b) f is a function taking an argument of type float and returning a integer.

Download C++ Type Checking Interview Questions And Answers PDF

Previous QuestionNext Question
Which datatype is used to represent the absence of parameters?
a) int
b) short
c) void
d) float
Pick the odd one out.
a) integer, character, boolean, floating
b) enumeration, classes
c) integer, enum, void
d) arrays, pointer, classes