Flag Discuss with colleagues and IITians> C
question mark

What is the use of UNIONS in C ?

P V V Satyanarayana , 11 Years ago
Grade Upto college level
anser 1 Answers
bhaveen kumar

Last Activity: 11 Years ago

Unions allow the same area of memory to be accessed as different data types. The insurance example above would not work.

Unions are useful (often in embedded programming) when it is needed to refer to a data item as two or more different types: e.g. it may be used as an integer for math, but an array of bytes for a serial transmission or a checksum calculation.

Provide a better Answer & Earn Cool Goodies

Enter text here...
star
LIVE ONLINE CLASSES

Prepraring for the competition made easy just by live online class.

tv

Full Live Access

material

Study Material

removal

Live Doubts Solving

assignment

Daily Class Assignments


Ask a Doubt

Get your questions answered by the expert for free

Enter text here...

question mark
Are core branches(Mechanical) in Top 3 NIT worth it ?
Discuss with colleagues and IITians
1 Answer Available

Last Activity: 2 Year ago(s)

question mark
What awaits me after jee and do you think it's worth it?
Discuss with colleagues and IITians
0 Answer Available

Last Activity: 2 Year ago(s)

question mark
Can i sacrifice board exams for jee mains as board exams are no where valueable as cuet and other will be seen for admission
Discuss with colleagues and IITians
0 Answer Available

Last Activity: 2 Year ago(s)

question mark
Is a student studying in IGCSE syllabus eligible for taking IOQP or IOQJS?
Discuss with colleagues and IITians
0 Answer Available

Last Activity: 2 Year ago(s)