You're developing a program to calculate the area of a circle. What data type would be most suitable to store the radius, considering it can be a fractional value?
- char
- double
- float
- int
To store the radius of a circle with fractional values, the most suitable data type in C is 'double' as it offers high precision for such calculations.
Loading...
Related Quiz
- In a large software project, certain code needs to be compiled only for debugging purposes. How can preprocessor directives be used to achieve this?
- How are the members of a structure accessed in C?
- Enumerations provide a way to assign ________ to a set of named constants.
- A pointer to a function in C is declared using the syntax ________.
- How does a double pointer differ from a single pointer?