What does void mean in C, C++, and C#? -


Where the word VoID comes from and why it will be called zero but want to get the basic principle, the purpose of the question is to assist the person There is no experience, and it is suddenly watching the C-based codebase.

In fact it means "nothing" or "no type"

3 basic ways zero is used:

  1. function argument: int myFunc (zero) -function takes nothing without

  2. Function Return value: zero myFunc (int) - No return of function

  3. Generic Data Pointer : Zero * Data - 'Data' is an indicator for unknown type of data, and it is not dereferenced

    Note: In the function argument, zero is optional C ++, hence int myFunc () by the way The same is the same as int myFunc (zero) , and it is left entirely in C #. It is always necessary for a return value.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -