C Program to display the Conventional Memory of the system

Code for Program to display the conventional memory of the system in C Programming

 # include <stdio.h>
 # include <conio.h>
 # include   <dos.h>

 int main( )
 {
    unsigned int far* SystemMemory=(unsigned int far*)0x00400013;
    clrscr( );

    printf("\nThe Total Physical Memory of the System = %d KB",*SystemMemory);

    getch( );
    return 0;
 }


Output:
The Total Physical Memory of the System = 640 KB

Post a Comment

0 Comments