Home » C Programming » Structures » Question
  1. Which of the following structure declaration is correct ?
    1. struct employ
      {
      char name[10];
      float salary;
      int workingdays;
      };
    2. struct employ
      {
      char name[10];
      float salary;
      int workingdays;
      }
    3. struct employ
      {
      char name[10]
      float salary
      int workingdays
      };
    4. All of the above.
Correct Option: A

In B semicolon is missing after the declaration. In C semicolon is missing after each structure element.



Your comments will be displayed only after manual approval.