+ 1

Void is a datatype???

like int like float like char.. like double they all are data type.. but why only void has no size

5th Apr 2018, 9:29 PM
Arun Tomar
Arun Tomar - avatar
2 Answers
+ 11
No, void is the absence of a datatype.
6th Apr 2018, 4:55 AM
Tashi N
Tashi N - avatar
0
Because you cannot instantiate an object of type void.
5th Apr 2018, 9:39 PM
Bebida Roja
Bebida Roja - avatar