Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete the Week 6 lessons (found by clicking on the Week 6 Lesson link in the sidebar) Create a C program (3 points): At the
Complete the Week 6 lessons (found by clicking on the Week 6 Lesson link in the sidebar) Create a C program (3 points): At the top of the file include the following comments: Your name The purpose (core concept found below) of the program -The date created o Create two int variables: Initialize each to different values. oCreate three pointers: Point the first two pointers to the first variable Point the third pointer to the second variable o Display the memory addresses and values of both variables. Include an appropriate output messages oDisplay the contents of all pointers. Include an appropriate output messages. o Display the values of the memory location each pointer points to. Change the value of the first variable. o Display the value of the first variable. Include an appropriate output message. o Display the values of the memory locations for the pointers that point to the first variable. Include an appropriate output message o Use the third pointer to change the value at the memory location the third pointer points to. oDisplay the value of the memory location the third pointer points to. Include an appropriate output message. o Display the value of the second variable. Include an appropriate output message. Compile and run your code. o Submit your source code as a plain text file with a.c extension. Make sure it compiles without error before submitting it. The core concept for this assignment is to use and manipulate variables using pointers
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