Answered step by step
Verified Expert Solution
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 Cprogram, 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 systemMake 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
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.
The program contains three blanks. Fill the first two with appropriate integer constants to print for both new outputs. Depending on your platform, it is possible though unlikely that your original program will produce a strange error message egbus errorsegmentation error before you get to this point.
If so you should try some other type of compiler.
Fill in the third blank in the program to print
Does your compiler allocate local scalar variables growing up or down in memory
ie higher or lower addresses Explain how you know this from your program output.
So please read all directions and answer those parts. These are parts not questions, so answer all of them. Please copy down the code, compile it do what is asked, and then answer the parts. please do everything well and correct i request you. do this well
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started