Untitled

mail@pastecode.io avatar
unknown
c_cpp
15 days ago
523 B
0
Indexable
Never
#include <iostream>

int main()
{
    int zmienna = 8, drugi = 4;
    int* wskaznik = &zmienna;
    int** wskaznik2 = &wskaznik;

    std::cout << zmienna << '\n';
    std::cout << &zmienna << '\n';
    std::cout << drugi << '\n';
    std::cout << &drugi << '\n';
    std::cout << wskaznik << '\n';
    std::cout << *wskaznik << '\n';
    std::cout << &wskaznik << "\n\n";

    std::cout << wskaznik2 << '\n';
    std::cout << *wskaznik2 << '\n';
    std::cout << &wskaznik2 << '\n';

    return 0;
}
Leave a Comment