What does void mean | SoloLearn: Learn to code for FREE!

+3

What does void mean

I'm beginner!!

a

8/4/2020 7:21:46 PM

Lamiso Debiso

4 Answers

New Answer

+4

It means that the function returns nothing back to calling statement.. Tag the language name pls.. instead of a ,void is better in tags.

+6

A beginner who has completed the C++ and Python course. Anyways, void is a placeholder for "No Data/Type" 1. specify return type for function that do not return values 2. Can't declare data of type void 3. Can declare a pointer to void i.e void*, somefimes also called opaque type 4. pointer to void must be type casted to proper type before dereferencing it. Directly dereferencing void* will result in compiler error 5. void* provides a polymorphic behavior in C to certain extent 6. There are few more non-common uses of void which i don't remember now.

+4

Read these posts it will help you. https://www.sololearn.com/discuss/91907/?ref=app https://www.sololearn.com/discuss/1503042/?ref=app https://www.sololearn.com/discuss/1192171/?ref=app

+2

I think you mean in C++ It means the function return nothing