Does an Integer variable in C occupy 2 bytes or 4 bytes? What are the factors that it depends on?

Most of the textbooks say integer variables occupy 2 bytes.
But when I run a program printing the successive addresses of an array of integers it shows the difference of 4.

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *