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 1
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 A12345, then array should be filled as following Figure 1:
\table[[A,1,2,3,4,5]]
Declare a pointer and point the pointer to the beginning of the array declared in Figure 1.
The following function is given to print the element, and memory location/address that the pointer points to.q,
Figure 2
Display each of the array's element and it's memory location using the function given in Figure 2. Figure 3 shows an example of the program output display with ID:A12345.
Hint: You may access the next array element by incrementing the array's pointer.
 Pointer and Arrays Exercise 1 Write a C program. The program

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 Databases Questions!