Is there a portable way to detect (programmatically) the memory page size using C or C++ code ?
C doesn't know anything about memory pages. On posix systems you can use long pagesize = sysconf(_SC_PAGE_SIZE);
long pagesize = sysconf(_SC_PAGE_SIZE);