title: Trying to write a simple structure base piece of code ...not getting?
body: <p>sorry i think i really messed up in few line of code based on structures...as i am new and last few days trying hard to understand C. Please check following code and guide me where i am wrong...thanks!</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  
  
  struct family{
  
         char name[20];
         int age;
         char father[20];
         char mother[20];
  
         };
  
   //Function to compares two strings and returns 1 or 0  
  
  char siblings(struct family member1, struct family member2)
  {
       if(strcmp(member1.mother, member2.mother)==0)
           return 1;
       else
           return 0;
   }
  
  int main()
  {
  
  //Following structure variables are decleared
  
      struct family member1;
      struct family member2;
  
    //structure variables initilized with a string
  
      member1.mother = "Rosy";
      member2.mother = "Rosy";
  
  //This function compares two strings and returns 1 or 0
  
      siblings(member1.mother, member2.mother);
  
  //trying to print resulst with respect to return from function 
  
       printf("%S\n",siblings(member1.mother, member2.mother)?"yes":"No");
  
  
      system("PAUSE");
      return 0;
  }
  </code></pre>