Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<i o s t re am>
- using namespace s t d ;
- int main ( ) {
- double numbers [ ] = { 1 . 1 , 3 . 2 , 5 . 3 , 7 . 4 , 9 . 5 , 0 . 6 , 2 . 7 , 4 . 8 , 6 . 9 , 8 } ;
- double ∗ p oi n t e r ;
- p oi n t e r = numbers ;
- c ou t << p oi n t e r << e n dl << p oi n t e r + 1 << e n dl ;
- c ou t << ∗ p oi n t e r << ” ” << ∗( p oi n t e r + 1 ) << e n dl << e n dl ;
- p oi n t e r++;
- c ou t << p oi n t e r << e n dl << p oi n t e r + 2 << e n dl ;
- c ou t << ∗ p oi n t e r << ” ” << ∗( p oi n t e r + 2 ) << e n dl << e n dl ;
- p oi n t e r += 5 ;
- c ou t << p oi n t e r << e n dl << p oi n t e r − 1 << e n dl ;
- c ou t << ∗ p oi n t e r << ” ” << ∗( p oi n t e r − 1 ) << e n dl << e n dl ;
- c ou t << p oi n t e r − numbers ;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement