Which of the following is not a correct variable type?
A. float
B. real
C. int
D. double
E. char
Answer: Option B
Solution (By Examveda Team)
Variable types in C define the kind of data that can be stored in a variable.Option A: float - This is a correct variable type in C, used for storing single-precision floating-point numbers.
Option B: real - This is not a correct variable type in C. There is no data type called real in C.
Option C: int - This is a correct variable type in C, used for storing integers.
Option D: double - This is a correct variable type in C, used for storing double-precision floating-point numbers.
Option E: char - This is a correct variable type in C, used for storing single characters.
Therefore, the correct answer is Option B: real.
Join The Discussion
Comments (3)
Related Questions on C Fundamentals
What is the primary purpose of a function prototype in C?
A. Declare a variable
B. Declare a function
C. Define a function
D. Assign a value
What is the correct syntax for declaring a variable in C?
A. int variable_name;
B. variable_name = 5;
C. variable_name int;
D. int = variable_name;

the answer is float
Thanks Mujtaba Hassan
The real constant is also called floating point which contains a decimal point
we cannot use real because it is not define in headerfile only float is define