Array subscripting and pointer arithmetics in C give different result
Advertisements I am getting different memory address (invalid one) when trying to obtain the address of the value located inside of an array when using array subscript syntax as opposed to when using pointer arithmetic which indeed yields expected (correct) memory address. Why is that? This code was compiled with gcc C99 and C11, flags:… Read More Array subscripting and pointer arithmetics in C give different result