conto pointer sederhana

#include <iostream.h>
 
int main()
 {
 int *a;
 int b=10;
 a=&b;  // mencopy nilai b
 
cout<<"alamat a : "<<a<<endl;
 cout<<"nilai b : "<<b<<endl;
 cout<<"nilai a : "<<*a<<endl; // paste copian hrus didahului bintang
 
return 0;
 }

Tidak ada komentar:

Posting Komentar

sniver ymy

https://safelinku.com/ref/yusepymy