Question: please explain why I have to reinitialize every parts, and how I can reinitialize it to work the code correctly. and please finish the code

 please explain why I have to reinitialize every parts, and howI can reinitialize it to work the code correctly. and please finish

please explain why I have to reinitialize every parts, and how I can reinitialize it to work the code correctly.

and please finish the code using while loop.

please show the result also.

It may be useful to compile/run 01_PostPreFixintro. c to quickly see how post/prefix with dereferencing works. For Task 1 , Consider the below expressions a) - d). wrapped into a while loop. Let abe the original expression. (a) (out = my_ptr ++ ) !=0. The expression (b-d) adds 0 to a) to control precedence - your task is to investigate how 0 impacts the results, and print the result on the terminal. Test all out them out using printff. a. printf( "a) while( (out =my_ptr ++)!=0){} ); b. printf( "b) while( (out =( my_ptr++ ) )!=0){); c. printf( "c) while( (out =( my_ptr ++))!=0){"); d. printf( "d) while( (out =( my_ptr) ++)!=0){ " ); and explain what does e) do below: e. printf( "d) while ( out = *my_ptr++!=0)\{ } "); Implement a-d in the code, avoid any infinite loops so it iterates at most 10 iterations. Add a counter and a break statement if needed. Background refresher below (skip forward if you understand operator precedence): of adding parenthesis to supersede or to clarify readability of an expression. x=5+65;// has higher precedence than + is equivalent to: x=5+(65) Task 2: Create a single similar while loop that creates the same output as a) BUT that uses prefix increment ++my_ptr, instead of the postfix above, that includes dereferencing, i.e., *++my_ptr HINT Be careful how you initialize the loop (it will take some thought)

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!