πŸ“Š C Programming
Q. What will be the data type returned for the following C function?
Code:
#include <stdio.h>
    int func()
    {
        return (double)(char)5.0;
    }
  • (A) char
  • (B) int
  • (C) double
  • (D) multiple type-casting in return is illegal
πŸ’¬ Discuss
βœ… Correct Answer: (B) int

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Yashika
Publisher
πŸ“ˆ
94%
Success Rate