Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int niz[7]={1,2,3,4,5,6,7};
- int *p=&niz[2];
- cout<<"Broj prije "<<niz[2]<<" je: "<<*(p-1)<<endl;
- cout<<"Broj poslije "<<niz[2]<<" je: "<<*(p+1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement