Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Question from embedded system Give d solution for d following program in embedded system .Verify the function of reentrant? Static int icount; void vNot Reentrant(int x,int *p) { int y; y=x*2; ++p; *p=123; icount+=234; printf("\n new count:%d",x); }

OpenStudy (anonymous):

actually i got dis question in sum test so i'mm unable 2 solve it plz can any1 help me out!!!

OpenStudy (anonymous):

and what u want to know here ? u will allways print the x u pass as argument, the other assigements wont do anything

OpenStudy (anonymous):

actually d question is .Verify the function of reentrant? i'm unable to solve dis....

OpenStudy (anonymous):

It's not reentrant, because it updates external variable icount inside the function.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!