Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the following well. Read all directions, answer all parts and make sure you answer the parts correctly. You have to do this well. Use

Answer the following well. Read all directions, answer all parts and make sure you answer the parts correctly. You have to do this well. Use the code and everything, do as it says and answer the questions.
For this assignment, you will need to run a C++ program. Use the attached C++program, i have screenshotted it, i apologize if it may be alot to write down on ur compiler but please just type it down and run it and do the directions as followed. So I have sent the screenshot of the code we are working with. Following is the directions you have to do.
Consider the attached C++ program. Run the program, commenting out the lines with blanks (you may need to modify the header for your system).Make sure you understand why you get the outputs your program produces before proceeding
that is after all the main point of this assignment.
Now based on the code you modify, the running of it, answer the following four parts
1. After understanding the program, can you make any conclusions about how C++ interpret addition on integers and pointers? Are they the same? Explain. Obviously, your explanation should point out the outputs that support your answer.
2. The program contains three blanks. Fill the first two with appropriate integer constants to print 805 for both new outputs. Depending on your platform, it is possible (though unlikely) that your original program will produce a strange error message (e.g.,bus error,segmentation error) before you get to this point.
If so, you should try some other type of compiler.
3. Fill in the third blank in the program to print 947.
4. Does your compiler allocate local scalar variables growing up or down in memory
(i.e., higher or lower addresses)? Explain how you know this from your program output.
So please read all directions and answer those 4 parts. These are 4 parts not 4 questions, so answer all of them. Please copy down the code, compile it, do what is asked, and then answer the 4 parts. please do everything well and correct i request you. do this well
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

Project management skills and/or experience desirable

Answered: 1 week ago