#include <stdio.h>
int main() {
int x = 5;
0[&x] = x + x;
printf("%d",x);
}
Pretty sure this answer is wrong. You can't apply the index operator to an integer constant, and pointer arithmetic requires the compiler to know the size of the type pointed to. For this code to work you would first have to cast 0 to a char pointer.
2018 Nov 7, 9:34:07 PM
Login in to like
Login in to comment