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.
Loading...
Related Quiz
- In C, pointers can be used to pass ________ to a function.
- In C, what is the effect of using pointers as function parameters with regards to pass by value and pass by reference?
- What is the return type of the strlen function in C?
- Why would a developer use pointers to structures instead of using structures directly?
- What is the significance of the size_t return type in the fwrite function?