Pointer - Make a pointer pointing to 8 64 bit, or 8 byte, integers. a. Put the following 8 numbers: 65536, 78890, 12345, 98765, 87906, 45637, 863248, 4632768 consecutively, one after the other, into the memory pointed to by the pointer. b. Once the pointer points to these 8 numbers, print them out. c. Print the addresses of these numbers. d. Reallocate memory, to add 4 more 64 bit integers: 768, 765, 92034, 65789
Pointer - Make a pointer pointing to 8 64 bit, or 8 byte, integers. a. Put the following 8 numbers: 65536, 78890, 12345, 98765, 87906, 45637, 863248, 4632768 consecutively, one after the other, into the memory pointed to by the pointer. b. Once the pointer points to these 8 numbers, print them out. c. Print the addresses of these numbers. d. Reallocate memory, to add 4 more 64 bit integers: 768, 765, 92034, 65789
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.3: Pointer Arithmetic
Problem 5E
Related questions
Question
do in c++ (.cpp) please: I will upvote you
![Pointer - Make a pointer pointing to 8 64 bit, or 8 byte, integers.
a. Put the following 8 numbers: 65536, 78890, 12345, 98765, 87906, 45637,
863248, 4632768 consecutively, one after the other, into the memory pointed to
by the pointer.
b. Once the pointer points to these 8 numbers, print them out.
c. Print the addresses of these numbers.
d. Reallocate memory, to add 4 more 64 bit integers: 768, 765, 92034, 65789](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F67835040-9929-41f9-8caf-1d96bb49750a%2F30dfbb79-a8dd-453d-8311-752f54dfd60b%2Fy2umb8e_processed.png&w=3840&q=75)
Transcribed Image Text:Pointer - Make a pointer pointing to 8 64 bit, or 8 byte, integers.
a. Put the following 8 numbers: 65536, 78890, 12345, 98765, 87906, 45637,
863248, 4632768 consecutively, one after the other, into the memory pointed to
by the pointer.
b. Once the pointer points to these 8 numbers, print them out.
c. Print the addresses of these numbers.
d. Reallocate memory, to add 4 more 64 bit integers: 768, 765, 92034, 65789
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
Recommended textbooks for you
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning