Examveda
Examveda

What will be the data type returned for the following C function?
#include <stdio.h>
int func()
{
    return (double)(char)5.0;
}

A. char

B. int

C. double

D. multiple type-casting in return is illegal

Answer: Option B


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function