Vidyalelo
Computer Science · Q10

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 10

Q10

A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?

A.
char function(double d, char c)
B.
int function(int d, char c)
Answer
C.
both (a) and (b)
D.
neither (a) nor (b)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board