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-17 7:52

#include <stdio.h>
#define onearray(type,name,elems,content...) type one__##name [elems]={content};type* name = &one__##name[-1];
onearray(int,array,10,1,2,3,4,5,6,7,8,9,10)
int main(){printf("#2:%d", array[2]);}

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