Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
350 B
3
Indexable
#include <iostream>

using namespace std;

int main()
{
    float x =1;
    double y= 1.5;
    
    float* wskf = &x; //wskaznik typu float
    double* wskd = &y; //wskaznik typu double
    
    cout<< x <<endl;
    cout<< &x <<endl;
    cout<< *wskf <<endl;
    
    cout<< y <<endl;
    cout<< &y <<endl;
    cout<< *(wskd)<<endl; 

    return 0;
}
Leave a Comment