In C, what is the relation between the addresses of consecutive elements of an array of type 'int'?

  • The addresses are consecutive with a difference of 1
  • The addresses are consecutive with a difference of 2
  • The addresses are consecutive with a difference of 4
  • The addresses are random and not related
In C, the addresses of consecutive elements of an array of type 'int' are typically consecutive with a difference of 4, as 'int' data type is usually 4 bytes in size. This allows for efficient traversal and indexing.
Add your answer
Loading...

Leave a comment

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