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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -