No video

Union in C programming | Structure vs Union

  Рет қаралды 119,103

Gate Smashers

Gate Smashers

Күн бұрын

👉Subscribe to our new channel: / @varunainashots
A union is a user-defined type similar to structs in C except for one key difference. Structures allocate enough space to store all their members, whereas unions can only hold one member value at a time.
► Programming in C (Complete Playlist):
• C Programming
Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
• Design and Analysis of...
►Database Management System:
• DBMS (Database Managem...
► Theory of Computation
• TOC(Theory of Computat...
►Artificial Intelligence:
• Artificial Intelligenc...
►Computer Networks (Complete Playlist):
• Computer Networks (Com...
►Operating System:
• Operating System (Comp...
►Structured Query Language (SQL):
• Structured Query Langu...
►Discrete Mathematics:
• Discrete Mathematics
►Compiler Design:
• Compiler Design (Compl...
►Number System:
• Number system
►Cloud Computing & BIG Data:
• Cloud Computing & BIG ...
►Software Engineering:
• Software Engineering
►Data Structure:
• Data Structure
►Computer Architecture :
• Computer Organization ...
►Graph Theory (Complete Playlist):
• Graph Theory
►Digital Logic:
• Digital Logic (Complet...
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
► Subscribe to us on KZbin: / gatesmashers
►Subscribe to our new channel: / @varunainashots
► Like our page on Facebook: / gatesmashers
► Follow us on Instagram: / gate.smashers
► Follow us on Instagram: / varunainashots
► Follow us on Telegram: t.me/gatesmash...
► Follow us on Threads: www.threads.ne...
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Email us at: gatesmashers2018@gmail.com

Пікірлер: 74
@anjalimeena3006
@anjalimeena3006 Жыл бұрын
I used to watch your videos during clg, today i watched your video again for an interview preparation. It reminded me of those clg days and i used to watch your videos day and night before exam. You're doing great job sir :)
@sam-001
@sam-001 Жыл бұрын
placement ho gaya kya?
@anjalimeena3006
@anjalimeena3006 Жыл бұрын
@@sam-001 hogya tha
@NikhilThakurOfficial
@NikhilThakurOfficial 9 ай бұрын
​@@anjalimeena3006 konsi University se or kitne lpa ka
@SakshamSharma_129
@SakshamSharma_129 9 ай бұрын
Kose clg se kiya ha apne
@anjalimeena3006
@anjalimeena3006 9 ай бұрын
@@SakshamSharma_129 NSIT,Delhi
@poojapoojadhapte1430
@poojapoojadhapte1430 Жыл бұрын
Thankyou because of u all topic clear dont stop doing urs all subjects are beautiful
@divyanshjain180
@divyanshjain180 Ай бұрын
one of the best video explaining union briefly...thank you sir
@rupesh_gamer
@rupesh_gamer Жыл бұрын
thanks sir for everything im watching your every videos Thanks for this content 🤩🤩🤩
@rohitthakur6397
@rohitthakur6397 Жыл бұрын
If we have to use only the largest memory's variable, then why we are declaring the other variables, with small data types in Union? We can declare just one variable with maximum data type.
@karanshrivastava3086
@karanshrivastava3086 Жыл бұрын
Inka mtlb hai ki one member can contain a value at a given time
@Tamanna_K_Hardy
@Tamanna_K_Hardy 2 жыл бұрын
Great as Always 😎
@samarthjhalani1005
@samarthjhalani1005 Жыл бұрын
Hiii
@pandayalachandrashekar4678
@pandayalachandrashekar4678 2 жыл бұрын
Tq Bro Because of you I got good marks in RDBMS 🙂🙂🙂
@TheMR-777
@TheMR-777 2 жыл бұрын
Well, you said that, to store a distance of “High Variability”, we use Union. But, in reality, you can simply use a double, for Decimal as well as Integer values, or unsigned double if you want more storage. That's not a problem, and that's not actually where it's used. Union is strongly related to type punning (type-casting). If you want to read a variable of Type: A, as Type: B, (without copying) we can use either of following methods: - *(B*)(&A) - or, by using a union Union is most commonly used in Polymorphism. Where, an Object can act as a Base (primitive) Object, or a Derived (primitive) Object. Like, reading integer as double, or reading float as long etc. Edit: Corrected Wording
@Harshit_patel70406
@Harshit_patel70406 3 ай бұрын
bahut accha padhate ho sab samaj aa gya thank you
@gajananandurkar3445
@gajananandurkar3445 Жыл бұрын
Thanks sir your teaching method is very easy
@amaanalikhan9450
@amaanalikhan9450 2 жыл бұрын
KZbin is a very nice platform ☺
@Piyush_sahu.1
@Piyush_sahu.1 7 ай бұрын
Watching 2hr before exam
@_sami_Dubey
@_sami_Dubey Ай бұрын
Thank you for much sir
@komalchaudhary3424
@komalchaudhary3424 Жыл бұрын
Thank you sir ✨
@binusahu95
@binusahu95 9 ай бұрын
Thank you so much sir helpful topic
@LORDSMOBILE108
@LORDSMOBILE108 3 ай бұрын
Thankyou sir
@amaanalikhan9450
@amaanalikhan9450 2 жыл бұрын
Thanks sir its goes in my syllabus.
@kyakrogejaank4137
@kyakrogejaank4137 4 ай бұрын
Thank you sir
@rajanmodanwal7479
@rajanmodanwal7479 2 жыл бұрын
Sir Data structure & Algorithms Start Make videos...🙏for competitive programing...✅🇮🇳
@aditinageshwar3217
@aditinageshwar3217 2 жыл бұрын
Thanks a lot sir😊
@shahrozkidunia3685
@shahrozkidunia3685 Жыл бұрын
sir which software you used in which you used white board
@Imrankhan8bp
@Imrankhan8bp 11 ай бұрын
Nice sir
@vinushisoni4773
@vinushisoni4773 Жыл бұрын
Sir C programming se direct Galaxy me chale gaye 🤣 But best explanation thank you Sir👌
@dikshakumari382
@dikshakumari382 2 жыл бұрын
Sir... Please make video for python... And your computer network and AI tutorial videos is superb 👍🏻
@amitgoswami7856
@amitgoswami7856 2 жыл бұрын
Great explain sir
@hirenmeghnani
@hirenmeghnani 2 жыл бұрын
Sir, ""System Analysis and Design(SAD)"" subject bhi padayo
@souvikmajumdar9090
@souvikmajumdar9090 Жыл бұрын
Instead of writing g so many variable in union why can't we just take "double data type" to define the size? What is the reason behind taking all the data type and the size of the biggest data type get's the priority!?
@apuravmahajan283
@apuravmahajan283 22 күн бұрын
Laga pata?
@sscode3809
@sscode3809 2 жыл бұрын
Wah sir you are great
@swatiyadav3993
@swatiyadav3993 2 жыл бұрын
nice explanation
@lalianschool6806
@lalianschool6806 2 жыл бұрын
khush rahin sir !
@priyankashukla9945
@priyankashukla9945 2 жыл бұрын
Which of the following terms is just the collection of network that can be joined together ? Sir Iska answer kya h plzbata dijiye internet intranet extranet ...me kya ans sahi he...sab jagah different de rakha h
@rudragaming999
@rudragaming999 Ай бұрын
Watching 10min before exam 💀
@prathasaxena9474
@prathasaxena9474 2 жыл бұрын
Wow! sir😍😍 Simply awesome......🙏
@harish9490
@harish9490 2 жыл бұрын
Superb sir
@milindthakare1648
@milindthakare1648 Жыл бұрын
you look like bgmi punk
@mohammediuzrakhanum91
@mohammediuzrakhanum91 Жыл бұрын
What about nested structure
@nidhisharma6539
@nidhisharma6539 2 жыл бұрын
Hello varun sir ..I want to learn python from you .plz tell me how is it possible??
@mr.rameshbhaiapatelfitter2299
@mr.rameshbhaiapatelfitter2299 2 жыл бұрын
best sir c programming ke or bhi video banana plz
@kallugaming1k
@kallugaming1k Жыл бұрын
Osam padh ho bhaiya g
@__Uv09
@__Uv09 2 жыл бұрын
sir machine learning pe bhi bnai hai aapne video
@Ravina-gl4od
@Ravina-gl4od 11 ай бұрын
Tq sir
@user-zv7kj6ht8u
@user-zv7kj6ht8u 9 ай бұрын
❤❤
@DhruvKumar-dikito
@DhruvKumar-dikito Жыл бұрын
ex peecha hi nahi chodti. Padhne aya tha idhar bhi aa gai
@Eclipso619
@Eclipso619 2 жыл бұрын
🤟🎯🤟
@chikkii1601
@chikkii1601 2 жыл бұрын
First comment 🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳 Thank you for the video Varun sir 🥳🥳🥳🥳🥳🥳🥳
@shivam2246
@shivam2246 2 жыл бұрын
Sir please rajasthan computer instructor ki test series launch kro chapter wise questions k saath bohot jaada dimand hai
@sarastemkar7835
@sarastemkar7835 2 жыл бұрын
baked bun
@muhammadafzal8329
@muhammadafzal8329 2 жыл бұрын
Sir AI ka complete syllabus krwa do
@asutoshdoppalapudi7830
@asutoshdoppalapudi7830 2 жыл бұрын
make videos on machine learning also
@user-hf4be1ty2s
@user-hf4be1ty2s 8 ай бұрын
You are getting hurry in every topic you need to work on some complicated problem sir
@__Uv09
@__Uv09 2 жыл бұрын
machine learning iss bar course me sir
@a2thegenius343
@a2thegenius343 2 жыл бұрын
Channel band kar do Bahut bekar padhate ho
@sachinmaurya4869
@sachinmaurya4869 6 ай бұрын
Very bad video 👺👺👺👺👺👺👺👺👺👺👺👺
@sushildwivedi4289
@sushildwivedi4289 7 ай бұрын
Thankyou sir
@jyotiyadav3153
@jyotiyadav3153 2 жыл бұрын
Sir one request please compiler playlist me runtime environment topic pe bhi ek vedio bana dijiye ....
Enumerator in C Programming | enum in C Programming
5:56
Gate Smashers
Рет қаралды 92 М.
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 47 МЛН
the cleanest feature in C that you've probably never heard of
8:13
Low Level Learning
Рет қаралды 134 М.
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
C_114 Unions in C | C Language Tutorials
17:19
Jenny's Lectures CS IT
Рет қаралды 162 М.
This Is One Of My Favorite TypeScript Features
5:22
Web Dev Simplified
Рет қаралды 136 М.
Structure & Pointer in C Programming with example
9:04
Gate Smashers
Рет қаралды 80 М.
Structures, Unions & Enums in C++ | C++ Tutorials for Beginners #14
17:23
Typecasting in C programming | Implicit & Explicit type conversions
8:06
Is the C programming language still worth learning?
9:27
Jacob Sorber
Рет қаралды 97 М.
C_109 Structures in C - part 1| Introduction to Structures
14:42
Jenny's Lectures CS IT
Рет қаралды 433 М.