Page 1 of 1

What will be the data type returned for the following C function?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
#include <stdio.h> int func() { return (double)(char)5.0; }
a) char
b) int
c) double
d) multiple type-casting in return is illegal