English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What is called anonymous structure? Give an example? - Computer Science

Advertisements
Advertisements

Question

What is called anonymous structure? Give an example?

Short Note

Solution

A structure without a name/tag is called an anonymous structure.

Example:
struct
{
long rollno;
int age;
float weight;
};
The student can be referred to as a reference name to the above structure and the elements can be accessed like student.rollno, student.age, and student.weight.

shaalaa.com
Structures Introduction
  Is there an error in this question or solution?
Chapter 12: Arrays and Structures - Evaluation - Section - C [Page 225]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 12 Arrays and Structures
Evaluation - Section - C | Q 5. | Page 225
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×