Thursday, November 20, 2008

Find the Memory Size using c programming ?

How to get the memory size ?

Ans: Consider the following program
#include 
#include 
main( )
{
int memsize;
memsize = biosmemory( ) ;
printf ( "RAM size = %dK\n",memsize ) ;
return 0 ;
}
The function biosmemory uses BIOS interrupt 0x12 to return the size of memory.

No comments:

Blog List