#include <iostream>
void printList(int ** list);
int main (int argc, char * const argv[]) {
int *myList = (int *)malloc(3*(sizeof(int)));
myList[0] = 12;
myList[1] = 14;
myList[2] = 16;
printList(&myList);
free(myList);
return 0;
}
void printList(int ** list) {
std::cout << (*list)[0] << std::endl;
std::cout << (*list)[1] << std::endl;
std::cout << (*list)[2] << std::endl;
}