Question: If there are char data variable: vara that has a value of 0 XDD ( vara = 0 XDD ) and resided / stored at

If there are char data variable: vara that has a value of 0XDD (vara=0XDD) and resided/stored at a DM address of 0XC7 and varc has a value of 0XFC (varc=0XFC) and reside/stored at a DM address of 0X15A in the PIC16F877A DM. Based on the following C code: (24 Points, 4 Points each)
{
unsigned char vara, varb, varc;
unsigned int *pt,*pv;
vara =0XDD;
varc =0XFC;
pv = &vara;
pt = &varc;
varb =*pv/3+*pt + vara/2+*pv +*pt/4;
}
(1) What is the value of vara? 0XDD
(2) What is the value of &vara? pv
(3) What is the value of pv? &vara
(4) What is the value of *pv?0XDD
(5) What is the value of *pt?0XFC
(6) What is the value of varb?

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