maaf ralat..... harusnya source code nya seperti ini..klo pake comfiler dev c++ atau minGW devloment studio pake nya ekstensi c janggan cpp :)#include"stdio.h"main(){typedef int *a;int c;a b;b = &c;*b = 5;printf(" nilai b %d \n",*b);c = 10;printf(" nilai b %d",*b);getch();}
maaf ralat..... harusnya source code nya seperti ini..
BalasHapusklo pake comfiler dev c++ atau minGW devloment studio pake nya ekstensi c janggan cpp :)
#include"stdio.h"
main(){
typedef int *a;
int c;
a b;
b = &c;
*b = 5;
printf(" nilai b %d \n",*b);
c = 10;
printf(" nilai b %d",*b);
getch();
}