What I want is,
 If data in array buff inside the thread changes, the global variable global_buff data must also change
#include <process.h>
.........
char global_buff_1[50];
char global_buff_2[50];
void thread (int x)
{
   char buff[50] = {0};
   if (x == 0)
      buff = global_buff_1;      //this is what i need, how can i equal two array correctly. i want to if buff array data changing the global_buff also changing.
   else
      buff = global_buff_2;
    .............
    //do some thing 
    .............
}
int main(int argc, char* argv [])
{
...................
int y = 0;
_beginthread((void(*)(void*))thread, 0, (void*)y);
.....................
}
any helping!
 
     
     
    