Something
public cpp v1 · immutable// g++ umaxx.cpp -o umaxx && ./umaxx#include <iostream>#include <string>struct pageTest{ int a;};void kmapTest(struct pageTest* p){ std::cout << "a: " << p->a << std::endl;}int main(int argc, char* argv[]){ struct pageTest pages[2][4] = { {1, 2, 3, 4}, {5, 6, 7, 8}, }; for(int i = 0; i < 2; ++i){ for(int j=0; j < 4; ++j) kmapTest(&(pages[i][j])); }