Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - An integer is 4 bytes, why&; A+ 1 Can an array represent the address offset, that is, 5*4 addresses? Ask for answers, thank you very much!
An integer is 4 bytes, why&; A+ 1 Can an array represent the address offset, that is, 5*4 addresses? Ask for answers, thank you very much!
& ampA+ 1 indicates the offset of sizeof(a) units.

A+ 1 indicates that the offset is sizeof(a[0]) units.

This is mainly a and&; A represents the address of the first element in the array, that is, the address of a[0].

And&A represents the address of the whole array, which makes it difficult for&; If a is added with 1, the compiler will automatically recognize that a is an array, get the size of a (sizoef(a)), and then move to the back of the whole array.