Question: 5 . ( 2 0 pts ) Visualizing a pointer in memory. Reference table of ASCII codes and Hexadecimal ( Hex ) will be distributed.

5.(20 pts) Visualizing a pointer in memory. Reference table of ASCII codes and Hexadecimal (Hex) will be distributed. Please answer outputs for each printf below and complete the entire table below by filling in columns for both binary and hexadecimal for what contents are stored in memory for letter_ptr and what contents are stored in memory for char letter. Note that char is a byte so one memory address.
```
char *letter_ptr; // pointer to char letter
char letter ='W'; // uppercase letter WW
letter_ptr = &letter;
printf("%d
", sizeof(letter)); //Answer:
printf("%d
", sizeof(letter_ptr)); //Answer:
```
5 . ( 2 0 pts ) Visualizing a pointer in memory.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!