What is the void data type?

Ethan Ross | 2023-05-05 14:10:01 | page views:1095
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Benjamin Thompson

Works at the International Energy Agency, Lives in Paris, France.
The data type void actually refers to an object that does not have a value of any type. We have already seen examples of its use when we have defined functions that return no value, i.e. functions which only print a message and have no value to return. Such a function is used for its side effect and not for its value.
2023-05-05 14:10:01

Benjamin Lee

QuesHub.com delivers expert answers and knowledge to you.
The data type void actually refers to an object that does not have a value of any type. We have already seen examples of its use when we have defined functions that return no value, i.e. functions which only print a message and have no value to return. Such a function is used for its side effect and not for its value.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4