Jumat, 09 Maret 2012

MENGETAHUI ALAMAT MEMORI PADA PC/LAPTOP DENGAN C++

LISTING PROGRAM
#include "iostream.h"
#include "stdio.h"
#include "conio.h"
void main()
{
clrscr();
int x;
int *px;
x=4;
px=&x;
cout << "nilai x" <<x <<endl;
cout << "nilai *px" <<x <<endl;
cout << "alamat px" <<px <<endl;
getch();
}

CONTOH HASILNYA

BACA JUGA