My goal for my program is to rewrite the return address to be return to another function b().
I could reach and rewrite the return address but i couldn't get the address for function which i want to return to b(). 
int main(){
  a();
}   
int a(){
  int *ret;
  ret=(int*)&ret+2;
  (*ret)=(int)b();  // <<<<<<<< Here is the problem !!!!
}
int b(){
}
 
     
     
     
    