Sunday, August 2, 2009

Given the structure and pointer declarations below, which sets the Price member of the structure?

pointed to by PC to 1000





struct Computer


{


char Manufacturer [30};


floatPrice;


int Memory;


} *PC;


int main (void)


{


struct Computer pc;


PC = %26amp;pc;





return 0;


}





a. PC-%26gt;Price=1000.0;


b. PC.Price=1000.0;


c. *PC.Price=1000.0;


d. Computer.Price= 1000.0

Given the structure and pointer declarations below, which sets the Price member of the structure?
May you need to contact a C expert. Check http://k.aplis.net/
Reply:Well, I actually wrote out a legitiate answer to this question, assuming that it was an honest issue. However, after looking a bit longer at the questions page and seeing that every other question on the list was you asking another homework problem, I suddenly lost interest in helping you. Good luck with it, pointers can be a bit tricky.


No comments:

Post a Comment