Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create variables for a character, a string, an integer, and a floating point number. Create pointers for each of those variables. Ideally, use the same

Create variables for a character, a string, an integer, and a floating point number.

Create pointers for each of those variables. Ideally, use the same name as the variable but add a p in front of the name. (For example: (total and ptotal)

Ask the user to enter information for each of these variables one at a time. For each variable tell them what they should enter. (For example: Enter a single character or Enter a floating point number) Read in the information and put it in the variables.

Make each pointer point to the respective variable.

Print out values for the four variables without using the variables themselves. Only use the pointers.

In addition print out the addresses of the memory locations that each pointer points to. You can use %p for that.

Output should look like the bottom sample.

Copy and paste the code and the output into a Word document and submit.

Character: k Integer: 4 String: [your name without brackets] Note that this is a character array Floating Point: 6.8 Character Pointer: XXXXXXXX Integer Pointer: XXXXXXXX String Pointer: XXXXXXXX Floating Point Pointer: XXXXXXXX

CODE C pls show the outpuit too pls

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

=+management system of the MNE?

Answered: 1 week ago