C
candy
hi all,
Is there is any way in the C language by which I can get the
address of a statement? For eg,consider the following simple program:
1. #include<stdio.h>
2.
3. int main(void){
4. int variable;
5. return 0;
6. }
Well is there is any way by which I can know the address of the
statement which is in the line 4?
Also,if I know the address of a statement then can I
transfer the control to that statement by equating program
counter equal to that address? Well,I can access as well as
modify the program counter with the help of the
setjmp(jmp_buf env) function.
Thanks in advance,
Candice.
Is there is any way in the C language by which I can get the
address of a statement? For eg,consider the following simple program:
1. #include<stdio.h>
2.
3. int main(void){
4. int variable;
5. return 0;
6. }
Well is there is any way by which I can know the address of the
statement which is in the line 4?
Also,if I know the address of a statement then can I
transfer the control to that statement by equating program
counter equal to that address? Well,I can access as well as
modify the program counter with the help of the
setjmp(jmp_buf env) function.
Thanks in advance,
Candice.