Difference Between Structures and Unions in C Programming - Structures in C - C Programming Language

  Рет қаралды 18,478

Ekeeda

Ekeeda

Күн бұрын

Пікірлер
@Ekeeda
@Ekeeda 4 жыл бұрын
Hello Friends Please watch the updated version here - kzbin.info/www/bejne/mqG7o5-AgJqfis0 Watch complete video series of subject Structured Programming Approach in C Programming only on Ekeeda Application. Download Ekeeda application to get 1000 Studycoins and use it to access free courses. Steps to follow:- 1. Download Ekeeda application from the link given below. 2. Sign up or Log in to your account. 3. You will get 1000 Studycoins worth Rs 1000. 4. Add the courses to your cart. 5. Select Study coins option to get free access. Android App : play.google.com/store/apps/details/?id=student.ekeeda.com.ekeeda_student iOS App : apps.apple.com/in/app/ekeeda/id1442131224
@tamilmaranc
@tamilmaranc 7 жыл бұрын
Excellent explained
@fadyserhan9537
@fadyserhan9537 7 жыл бұрын
good organized explanation.....but i really don't know why someone should use a union? just because it's less memory?
@vivekjain8545
@vivekjain8545 6 жыл бұрын
Excellent explanation. Except one point that size of struct will be 12 bytes. Reason for this is data strcture alignment. ========================= integer takes 2 byte and than a data padding of 2 byte will be added to have a fixed word size for having a faster memory access because cpu access memory faster for a fixed word size. Now as float is of 4 byte so it occupies 4 byte. and character accupies 1 byte and 3 byte data padding will be added at the end of this variable. so the total memory allocated will be 12 bytes. ( 2byte (int) + 2byte(data padding) +4 byte(float)+1 byte(char) + 3 byte(data padding)=12 byte ). ===================
@shaikshafi407
@shaikshafi407 5 жыл бұрын
hello sir! does the structure member gets allocated memory or is it the structure variable?
@rakeshr.a8856
@rakeshr.a8856 7 жыл бұрын
bravo man!!
@sushantthapachhetri7225
@sushantthapachhetri7225 6 жыл бұрын
you are awesome sir>>>well explained
@Ekeeda
@Ekeeda 6 жыл бұрын
You are welcome! Can you give us your worthy reviews as it will enable us to create more enriching videos in future? www.google.com/search?q=Ekeeda&ludocid=0x3be7cef39a0bcb1f:0x695389d0b57989f4
@Ekeeda
@Ekeeda 6 жыл бұрын
You are welcome! Can you give us your worthy reviews as it will enable us to create more enriching videos in future? www.google.com/search?q=Ekeeda&ludocid=0x3be7cef39a0bcb1f:0x695389d0b57989f4
@karthikn7179
@karthikn7179 7 жыл бұрын
good to listen . Thanks
@arnavkumar6645
@arnavkumar6645 6 жыл бұрын
Although you clearly explained how data gets stored in union, you didn't explain how is it possible to retrieve the value of int a after being overwritten by float r and char c.
@huyvole9724
@huyvole9724 6 жыл бұрын
No, your struct have 12 bytes not 7 bytes. Reason: follow Data struct Alignment.
@vivekjain8545
@vivekjain8545 6 жыл бұрын
You are right. Data strcture alignment is used to have a faster memory access.
@khuraana1
@khuraana1 7 жыл бұрын
perfectly explnd thnks
@jairuskabila4041
@jairuskabila4041 6 жыл бұрын
thats nice
@IgiveyouNONE
@IgiveyouNONE 7 жыл бұрын
Annoying music. Remove it..
@pritikumari9962
@pritikumari9962 6 жыл бұрын
Concept is good...bt vry irritating video.... just bcoz this useless music..
Introduction to Unions in C
6:58
Neso Academy
Рет қаралды 263 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Union Data Types | C Programming Tutorial
11:42
Portfolio Courses
Рет қаралды 16 М.
⚡️NEWS | UNITED RUSSIA OFFICE AND ATMS BURNED DOWN | COMPLAINING TO PUTIN ABOUT GREF
9:14
Function Pointers in C / C++
11:57
mycodeschool
Рет қаралды 440 М.
Understanding C program Compilation Process
6:04
HowTo
Рет қаралды 382 М.
Union in C programming | Structure vs Union
10:21
Gate Smashers
Рет қаралды 138 М.
Destructor in C++ (Episode 7)
13:31
BBarters
Рет қаралды 13 М.
69 - DIFFERENCE BETWEEN STRUCTURE & UNION - C PROGRAMMING
14:08
Sundeep Saradhi Kanthety
Рет қаралды 75 М.
#26  C Struct | C Programming for Beginners
13:37
Programiz
Рет қаралды 91 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН