Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I found out how to solve the array index problem!!!!

Name: Anonymous 2017-09-06 20:34

void main (){
int numbers[10] = {1,2,3,4,5,6,7,8,9,10};
int *array = &numbers[-1];

printf("%d\n", array[4]);
return 1;
}


Output: 4

Name: Anonymous 2017-09-21 19:44

>>17-19
Only in C and C++ is this acceptable in production code.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List