Advertisement
Guest User

kk

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