Home » C Programming » Typedef » Question
  1. Which is the correct syntax to use typedef for struct?
    1. struct temp
      {
      int n;
      };
      typedef struct temp TEMP;
    2. typedef struct temp
      {
      int n;
      }TEMP;
    3. typedef struct temp
      {
      int n;
      }TEMP;
    4. All of above
    5. None of these
Correct Option: D

Option A, B and C is correct syntax to use typedef for struct.



Your comments will be displayed only after manual approval.