name the data type that indicates the empty set of data
Answers
Answer:
The answer is void data type because it represents nothing or empty. When it used as a function return type, the void keyword specifies that the function does not return a value.
Question:
______ data type specifies an empty set of values.
Free Practice With Testbook Mock Tests
Hindi Content for All Teaching Exams (Paper 1 & 2) - Let's Crack TET!
Hindi Content for All Teaching Exams (Paper 1 & 2) - Let's Crack TET!
75 Total Tests | 2 Free Tests
Options:
Double
Void
Float
Char
Correct Answer: Option 2 (Solution Below)
Promotional Banner
Solution:
Char
The most basic data type in a programming language. It stores a single character and requires a single byte of memory in almost all compilers.
Void
A data type that has no values and is used to represent nothing.
Float
It is used to store decimal numbers (numbers with floating-point value) with single precision.
Double
It is used to store decimal numbers (numbers with floating-point value) with double precision
Conclusion:
The answer is void data type because it represents nothing or empty.
Important point –
When it used as a function return type, the void keyword specifies that the function does not return a value.
When used for a function's parameter list, n