Initialize memory for fd[1], however, the code is giving me an error as expected ‘void *’ but argument is of type ‘int’

int fd[2];
  if(pipe(fd) == -1){
        perror("pipe");
  }
memset(fd[1], MAX_PASSWORD * 2, sizeof(char));