#include <stdio.h> #include <bios.h> int main ( void ) { int memory_size; memory_size = biosmemory(); /* returns value up to 640K */ printf ( "RAM size = %dK\n",memory_size ); return 0; }