Question: Beginning level. Write a C program to demonstrate the use of & (address of) and * (dereference operator; value at address) operator. NOTE: The addresses
Beginning level. Write a C program to demonstrate the use of & (address of) and * (dereference operator; value at address) operator.
NOTE: The addresses in the memory (on your machine) will be different with the expected output. Get the three values as input from the user.
Expected output:
Pointer: Demonstrate the use of & and * operator:
=====================================
a = 100
ab = 400.40
abc = z
Using & operator:
=========================
address of a = 0x7ffda2feee48
address of ab = 0x7ffda2feee4c
address of abc = 0x7ffda2feee47
Using & and * operator:
========================
value at address of a = 100
value at address of ab = 400.40
value at address of abc = z
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
