A
anjali
Consider the following code:
#include <stdio.h>
int main(void)
{
char buf[100];
unsigned i;
i=(unsigned)buf +100;
printf("%u\n",i);
return 0;
}
Can anybody please tell me that is there is any way to write in the
memory area reserved by the buf array only by using the integer "i" ?
The question have some importance for me as I have to use such a
technique for pushing the parameters in a thread's stack using the
setjmp function in the Linux OS.
Thanks
#include <stdio.h>
int main(void)
{
char buf[100];
unsigned i;
i=(unsigned)buf +100;
printf("%u\n",i);
return 0;
}
Can anybody please tell me that is there is any way to write in the
memory area reserved by the buf array only by using the integer "i" ?
The question have some importance for me as I have to use such a
technique for pushing the parameters in a thread's stack using the
setjmp function in the Linux OS.
Thanks