#include <iostream> #include <malloc.h> using namespace std; typedef int mytype[2]; int(*pFun(int n))[2]{ mytype *k = (mytype*)malloc(sizeof(mytype)) ; (*k)[0] = 1202; (*k)[1] = 1902; return k; } int main(){ mytype *b = pFun(0); cout << (*b)[0] << endl; cout << (*b)[1] << endl; }