Lesson 22 of 23
Structures (struct)
11 min 35 XP
struct वेगवेगळ्या types चे fields एका नवीन type मध्ये बांधतो, जसे विद्यार्थ्याचे नाव, roll number आणि गुण. typedef त्याला छोटे नाव देतो, आणि -> pointer द्वारे field पर्यंत पोहोचतो.
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.struct विरुद्ध union: union मध्ये सर्व fields एकच memory वापरतात. C interviews मध्ये हा प्रश्न अपेक्षित ठेवा.