Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #include<i o s t re am>
  2. using namespace s t d ;
  3. int main ( ) {
  4. double numbers [ ] = { 1 . 1 , 3 . 2 , 5 . 3 , 7 . 4 , 9 . 5 , 0 . 6 , 2 . 7 , 4 . 8 , 6 . 9 , 8 } ;
  5. double ∗ p oi n t e r ;
  6. p oi n t e r = numbers ;
  7. c ou t << p oi n t e r << e n dl << p oi n t e r + 1 << e n dl ;
  8. c ou t << ∗ p oi n t e r << ” ” << ∗( p oi n t e r + 1 ) << e n dl << e n dl ;
  9. p oi n t e r++;
  10. c ou t << p oi n t e r << e n dl << p oi n t e r + 2 << e n dl ;
  11. c ou t << ∗ p oi n t e r << ” ” << ∗( p oi n t e r + 2 ) << e n dl << e n dl ;
  12. p oi n t e r += 5 ;
  13. c ou t << p oi n t e r << e n dl << p oi n t e r − 1 << e n dl ;
  14. c ou t << ∗ p oi n t e r << ” ” << ∗( p oi n t e r − 1 ) << e n dl << e n dl ;
  15. c ou t << p oi n t e r − numbers ;
  16. return 0 ;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement