I am trying to find what is the issue with below program.
#include <stdio.h>
void func(char *name, char *buff)
{
   name = &buff[0];
}
void main()
{
   char name[4] = {'A','B','C','D'};
   char buff[4] = {'E','F','G','H'};
   printf("%s \n",name);
   func(&name[0], &buff[0]);
   printf("%s \n",name);
}
Output:: ABCD ABCD
Why isnt pointer getting reassigned in the method func() ?
 
     
    