Which of the following is not a valid C data type?
2026
Which of the following is not a valid C data type?
Answer: C. real — ConceptIn C, a type name must either be defined by the language or introduced by the program through a declaration such as typedef. The standard arithmetic…
- A.
int
- B.
float
- C.
real
- D.
char
Attempted by 569 students.
Show answer & explanation
Correct answer: C
Concept
In C, a type name must either be defined by the language or introduced by the program through a declaration such as typedef. The standard arithmetic type family includes integer types and floating types.
Application
Among the given values, int, float, and char are standard C type specifiers. real is not a predefined C type name; a program may use it as a type name only after explicitly defining an alias such as typedef float real;. Therefore, the value that is not a built-in C data type is real.
Contrast
intdenotes a signed integer type for whole-number values.floatdenotes a floating type for finite-precision real-number approximations.realis an ordinary identifier unless the program declares it as a typedef name.chardenotes the character-sized integer type;sizeof(char)is 1 byte.
Cross-check
A declaration such as int x;, float y;, or char c; uses a standard type specifier. By contrast, real z; requires a prior declaration such as typedef float real;, confirming that real is not predefined by C.