1.20 Pointers
#include <iostream>
using namespace std;
int main() {
int value = 42; // Değişken tanımı
int *ptr = &value; // İşaretçi oluşturma ve adresi alma
cout << "Değişkenin Değeri: " << value << endl; // 42
cout << "Değişkenin Bellek Adresi: " << &value << endl; // Bellek adresi
cout << "İşaretçinin Göstermiş Olduğu Değer: " << *ptr << endl; // 42
return 0;
}Last updated