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 vs union: union లో అన్ని fields ఒకే memory ను పంచుకుంటాయి. C interviews లో ఈ ప్రశ్న ఆశించండి.