Question: this is one question in 5 part, please answer all the questions, Thanks 1) Predict what you will see when you Single Step to 1


1) Predict what you will see when you Single Step to 1 What is the value of variable when you single step to this point in the program? What can you say about the address of variable and the value of pointer? 2) Prediet what you will see when you Single Step to 2 What is the value of variable when you single step to this point in the program? What can you say about the address of variable and the value of pointer? 3) Predict what you will see when you Single Step to 3 What is the value of variable when you single step to this point in the program? What can you say about the address of variable and the value of pointer? 4) Predict what you will see when you Single Step to 4 What is the value of variable when you single step to this point in the program? What can you say about the address of variable and the value of pointer? DHinclude \#include void myPointerFunct(void); unsigned char testFunction(unsigned char varOne); void testFunctionTwo(unsigned char "varTwo); int main(void) \{ myPointerFunct 0 ; return(0); 1 void myPointerFunct(void) unsigned char *pointer; unsigned char variable; variable =1 pointer = \&variable; printf("Value stored in variable = \%u, Address of Variable % un", variable, \&variable); printf("Value stored in pointer = \%u, Address of pointer \%u", pointer, \&pointer); "pointer =2; printf("inNewer Value stored in variable =%u, Address of Variable % un", variable, \& \&ariable): printf("Value stored in pointer =%, Address of pointer \%uln", pointer, \&pointer); variable = testFunction ( variable ); printff("inEven Newer value stored in variable =% u. Address of Variable \%u'n", variable, \&variable); printf("Value stored in pointer =%u, Address of pointer %uln ", pointer, \&pointer); testFunctionTwo(\&variable); printf("inNewest value stored in variable =%, Address of Variable \%unn", variable, \&variable); printf("Value stored in pointer =%, Address of pointer \%u'nln", pointer, \&pointer); system("pause"); return; ) unsigned char testFunction(unsigned char varOnc) unsigned char testFunction(unsigned char varOne) return (2 * varOne); void testFunctionTwo(unsigned char *varTwo) *varTwo = 2( varTwo); return; 5) Enter Run the program and copy down the following: Single Step to 1 value of variable address of variable value of the pointer Single Step to 2 value of variable address of variable value of the pointer Single Step to 3 value of variable address of variable value of the pointer Single Step to 4 value of variable address of variable value of the pointer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
