Home » Uncategorized » Array of Pointers in C

Array of Pointers in C

#include <stdio.h>

int main(void) {
	int x[2] = {4, 10};
	int *p[] = {x, x+1};

	printf("%d, %d\n", **p, **(p+1));
	return 0;
}
Indexing One dimension NumPy arrays
Indexing One dimension NumPy arrays

Leave a Comment

Sign up to our newsletter!