C_117 Structure Packing in C | C Language Tutorials

preview_player
Показать описание


Use my code JKL10 to get 10% discount:

Use my code JKL10 to enroll for free

Connect & Contact Me:

See Complete Playlists:

#StructurepackinginC
#structuresinC
#CProgrammingTutorials
#jennyslectures
Рекомендации по теме
Комментарии
Автор

I got to know about this channel from other channel just came to see how mam is doing😁😁 but i think fate send me here cause i was searching for c programming good channel and mu god her teaching skills 😊😊 Thank you god

ayushpandey
Автор

13 with #pragma pack(1) or without 16.

aryasharma
Автор

16 bytes for 32 bit compiler without using #pragma pack(1)
With using #pragma pack(1) 13 bytes

jarpalasony
Автор

#include <stdio.h>
#pragma pack(1)
struct abc{
char a;
// char c;
int b;
// char c;
double c;
};
int main()
{
struct abc s;
printf("size=%d", sizeof(s));


return 0;
}
o/p:=
with padding it get =16 byte
with packing it get= 13 byte.

aparnamane
Автор

16 bytes is the answer without structure padding. Thanks for the lecture and crystal clear explanation

lokesh
Автор

Ma'am please cover all syllabus of CSE, this will be very helpful for us ❤️

priyanshuverma
Автор

Without the header #pragma pack(1)
The allocated memory size is 16 bytes.

with #prama pack(1)
The alloacted memory is 13 bytes.

thanks mum.

devSackey
Автор

answer for the question at 10:10 is
without #pragma pack(1) is size of abc is16
without #pragma pack(1) is size of abc is13

nituM-oj
Автор

Your lecture is so awesome mam..and you statergy of teaching is also very good ...thanks mam ..your lecture are Very helpful for us ...plz upload such a lectures of programming languages

dhiraj
Автор

U r just amazing mam just loving and enjoying your videos keep guiding us and u r so clear about the concepts thank you for these

divyahiremath
Автор

Without #pragme pack (1)-answer is 16
And with #pragme pack(1)- answer is 13

satyajitmanna
Автор

Ma'am you are amazing, love from Gujarat 🙇

neel
Автор

Madam, i have completed education. I have government job in Indian railways as SSEngineer. I still come here to learn. You're very beautiful.

lenovodolby
Автор

superb, watching always, love from Afghanistan, keep it up and continue

mdinma
Автор

so as we considering the double it is 8 bit
so each and every data type memory allocated is 8+8+8=24 bytes in padding
if we use the packing then we will get 1+4+8=13

MaheshYadav-wngk
Автор

Assignment:

With padding

char
int
double

this will be 16 bytes

With packing:
char
int
double
this will be 13 bytes

abdulrahimjalloh
Автор

Mam you're really talented.... And you're very humble and great....
You're using this YouTube medium very well to share your knowledge....
May God bless you and bring happiness to your life...

psychiclk
Автор

structure packing is 13
structure padding is 16

vishnuvardhanreddy
Автор

But how it will take more CPU cycles in case of structure packing

rushikeshchaudhari
Автор

I don't relate with your study, just came here after watching your short video that was Recommended by You Tube 😊
Stay blessed!

Sreekanth_