Hello, can somebody give me some help about using pointers to arrays?
What I want to do is to use a array of integers. This is the come I came up with:
int *myArray[10];
myArray = (void*)malloc(sizeof(int) *10);
Is that correct? How can I access the 2nd element of my array? I tried *myArray[2] but it didn't work.