c# - What data type does memory see when I use void? -


When I make a method of type int, then the x number of bits in the compiler reserved memory. So how does a zero type look? How many bits / bytes take a zero type?

Zero type does not take any bits, you can not declare zero of type. It:

  zero;  

causes a compile error. Zero zero is only a place holder, which means "nothing" is a function that returns zero and a function that takes zero as an argument, there is no logic.

You can still declare a variable type of void *:

  zero * a;  

It only announces an indicator that can point to anything that ever happens. As an indicator, it takes the shape of an indicator type, i.e. size (zero *), which is usually equal to 4 in 32 bit system.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -