help me coders :d

Posts 1–2 of 2 · Page 1 of 1
help me coders :d
guys what do VOID means?
Just google it next time, here\s a definition that I got from google:

Code:
Basically it means "nothing" or "no type"

There are 3 basic ways that void is used:

1) Function argument: int myFunc(void) -- the function takes nothing.

2) Function return value: void myFunc(int) -- the function returns nothing

3) Generic data pointer: void* data; -- 'data' is a pointer to data of unknown type, and cannot be dereferenced

Note: the void in a function argument is optional in C++; int myFunc() is exactly the same as int myFunc(void). It is required for a return value
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us