title: How to initialize string in struct without using strcpy function?
body: <p>Is there any manual way to initialize the string in struct ? I used to initialize string in struct using strcpy function such as:</p>
  
  <pre><code>typedef struct {
      int id;
      char name[20];
      int age;
  } employee;
  
  
  int main()
  {
      employee x;
      x.age=25;
  
      strcpy(x.name,"sam");
      printf("employee age is %d \n",x.age);
      printf("employee name is %s",x.name);
  
      return 0;
  }
  </code></pre>