Answered step by step
Verified Expert Solution
Question
1 Approved Answer
at the first one we started from the address 1 because *j =&letters[1] so we should at the second one start from address 0 because
at the first one we started from the address 1 because *j =&letters[1] so we should at the second one start from address 0 because *j =&letters[0] so it should be not k
COM251 Data Structures Prepared by Dr. Imren Yeilyurt Forward or reverse scrolling between addresses with pointer variables: Let declare; int *pi; The pi +1 address represents the next address of the pi value, and the pl-1 address represents the previous address of the *pi value. Similarly, the address pi+2 indicates two addresses ahead of the address where the *pi value is located. Example: char letters[18)={"ABCDEFGHYKLMNOPR"); stort schar *j=&letters[1]; int i; j=B 15 Paddress of and odd it to be address of i itj=2 plug for(i=1;i=&letters[0]; for(i=10;i>1;i-=2) printf("%c",*(1+i)); i=1 2 1-3 jal itj = 4 pratit 3 i-5 jal j tj.=6 4G i tj-840 6 i-9 j=1 6 i=11 j=1 G ;=13 =1 i i+j=14110 8 i=15 j=1 it j = 16 118 CEGIK MOR itjJ2 11a Output: CEGIKMOR KIGEC 10 =10 5-0 jt = 10Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started