Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help Please Week 1 Introduction Week 1 Assignment Purpose: 1. Understand the pointer in C and know how to manipulate pointers. 2. Understand how to

help Please
image text in transcribed
Week 1 Introduction Week 1 Assignment Purpose: 1. Understand the pointer in C and know how to manipulate pointers. 2. Understand how to create a C program; compile and execute it. Description: Write a C program by implementing the following instructions: 1. declare three integer variables a1, b1, c1 2. declare three integer pointer variables pa1, p1, pc1 3. assign 18 to variable a, 10 to variable b 4. assign the address of variable a to variable pa 5. assign pa to pb 6. assign pa to pc 7. print out the values pointed by pa, pb, pc (dereferencing it) 8. assign the address of variable b to pa 9. print out the values pointed by pa, pb, pc (dereferencing it) 10. print out the values of pa, pb, pc Note: the format specifier for an address (pointer), you can use %p What should be submitted: 1. Run the program and submit a snapshot of successful program execution. (For Windows OS, use Snipping Tool to take a snapshot.) 2. Explain the difference between printing out pa and Spa 3. Add a new statement to print out the value of variable at the address of variable a1, the size of variable a1. 4. A.c file that contains the complete source code of the program

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_2

Step: 3

blur-text-image_3

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

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions

Question

The nature and importance of the global marketplace.

Answered: 1 week ago