C Programming Data Types -


A question was asked, and I'm not sure whether I gave the correct answer or not. The question was, why use int , why not char , why are they different? Is it all safe in memory, and why are bits, data type categories?

Can someone put some light on it?

four is the smallest addressable piece of memory - add data buffers There is a good suit to break, but can not keep more than 256 different values ​​(if char <8x> is normal) and therefore it is not very good for the numeric calculation Int is usually less than char - more suitable for calculation, but not suitable for byte-level manipulation.


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%? -