Question: Pointer and Arrays Exercise 1 Write a C program. The program should: Declare a char type array, and fill the array with your ID .
Pointer and Arrays
Exercise
Write a C program. The program should:
Declare a char type array, and fill the array with your ID For example, if your ID is A then array should be filled as following Figure :
tableA
Declare a pointer and point the pointer to the beginning of the array declared in Figure
The following function is given to print the element, and memory locationaddress that the pointer points to
Figure
Display each of the array's element and it's memory location using the function given in Figure Figure shows an example of the program output display with ID:A
Hint: You may access the next array element by incrementing the array's pointer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
