AnsweredAssumed Answered

Basic question on pointers....

Question asked by ruby krishna on Jun 9, 2014
Latest reply on Jun 16, 2014 by StenS

Consider the following example

 

 

void tester(unsigned char *);

 

void main()

{

unsigned int test,y;

tester(&test);

y=test

}

 

void tester( unsigned char *x)

{

*x=36;

 

}

 

What will be the value  of y now?

whether address  of test  will be removed from the subroutine void tester once its exits!!

 

Please clarify!

Outcomes