Examveda

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.

This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Comments (3)

  1. Malick Sallah
    Malick Sallah:
    5 years ago

    the answer is float

  2. Satyam Bajpai
    Satyam Bajpai:
    6 years ago

    Thanks Mujtaba Hassan

  3. Mujtaba Hassan
    Mujtaba Hassan:
    8 years ago

    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

Related Questions on C Fundamentals