C_114 Unions in C | C Language Tutorials

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2021
  • C complete playlist: • Programming in C
    Use my code to join the test: JKL10
    Combat Link: unacademy.com/combat/gate-ese...
    Connect & Contact Me:
    Vlogging Channel Link: bit.ly/354n7C7
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/profile/Jayanti...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    See Complete Playlists:
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Design and Analysis of Algorithms(DAA): • Design and Analysis of...
    Dynamic Programming: • Dynamic Programming
    Operating Systems: // • Operating Systems
    DBMS: • DBMS (Database Managem...
    #unionsinC
    #Cprogrammingtutorials
    #gatecslectures
    #jennyslectures

Комментарии • 168

  • @hariparuchuru3858
    @hariparuchuru3858 Год назад +16

    if we dont initialize c value then the last entered value char b as 97.
    this means the combined memory allocation for union will store the last entered value 97 which int a also can access
    so the output will be
    a value is 97
    b value is a

  • @omarahmedaziz4877
    @omarahmedaziz4877 2 года назад +40

    Mam your teaching method is really amazing. Please complete this series ASAP. ❤️

  • @moonglaiv3
    @moonglaiv3 2 года назад +7

    Can’t stress how good this course is. Really helped a lot. Thank you.

  • @SD-tu1tn
    @SD-tu1tn 6 месяцев назад +1

    You make it easy to grasp some concepts in C that i thought difficult beforehand. Thank you very much

  • @Yooarmy
    @Yooarmy Год назад +6

    No words to describe your role in my study ma'am
    Heartiest thanks to you ma'am 🙏

  • @cutecat1118
    @cutecat1118 2 года назад +2

    Your Method of teaching is the best..... You are the best one....

  • @sahilbeniwal69
    @sahilbeniwal69 2 года назад +2

    Mam , You are the best teacher i ever seen your teaching method is best

  • @linceesen1086
    @linceesen1086 Год назад +1

    Thank u for teaching us so easily...No one can beat your teaching method,Love from Kolkata❤❤

  • @saharnaqib
    @saharnaqib 2 года назад +3

    thank you from Afghanistan , i learned a lot form you videos i am a CS student

  • @kothamachusupriya9590
    @kothamachusupriya9590 Год назад +1

    it gives lowercase a as output because 97 is its ascii value and u declared b as charecter

  • @joebosah2727
    @joebosah2727 2 года назад +1

    Totally understood
    Thanks, Jenny

  • @vedantideshmukh1875
    @vedantideshmukh1875 2 года назад +6

    Mam I am learning lot more things from you . I learned data structure ,operating systems from you and I want to request you will you please start series on Computer structure and architecture

  • @thegatelearner-original
    @thegatelearner-original 2 года назад +2

    Mam your teaching method is really amazing👍

  • @azhaguveeraazhaguveera8112
    @azhaguveeraazhaguveera8112 2 года назад +5

    Greate mam.....
    Your approach is very practical...

  • @nishasiddu5487
    @nishasiddu5487 Месяц назад

    No one explains like you hats off 🫡

  • @saibanali9515
    @saibanali9515 2 года назад +2

    Your channel is more use full to me thank you so much mam

  • @kanaksinghal9748
    @kanaksinghal9748 2 года назад +12

    Start from 2:24

  • @qazicode4467
    @qazicode4467 2 года назад +10

    Mam Please make a tutorial on " NESTED STRUCTURE ".

  • @717abhishek4
    @717abhishek4 2 года назад +4

    Mam it’s my kind request to complete this series ASAP we hav exams next month and I want to complete whole data structures within that. 🥺

  • @universe449
    @universe449 7 месяцев назад

    Beauty with brain
    Mam ur teaching is really awesome
    Every difficult topic u made it easy
    Thank you mam so much ❤️❤️☺️☺️☺️☺️☺️❤❤❤❤

  • @user-sj3yn5dz5g
    @user-sj3yn5dz5g 8 месяцев назад

    a value will become the b values if we enter any integers(1 byte integers) b will be any garbage value

  • @smartboysai930
    @smartboysai930 2 года назад +3

    Sister I understood u r classes .I request u to plz give PDF or notes for c language.tq sister I am going b.tech in this year .

  • @dasadiamukeshbhai6100
    @dasadiamukeshbhai6100 2 года назад +1

    Ma'am meri college me padhate hai usme kuch samaj nahi aata.. aaj aapka video dekha union sikh liya pura thank you!! You are best Ma'am 🌸🙌🏻❤️

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 2 года назад +1

    NICE SUPER EXCELLENT MOTIVATED

  • @kirangadani2225
    @kirangadani2225 2 года назад +4

    Is this playlist enough for gate c programming..?? Can i rely on it?

  • @luckyscreation7396
    @luckyscreation7396 2 года назад +2

    12bytes allocated in struct mam, because there is no #pragma pack(1).

  • @govindarao331
    @govindarao331 2 года назад +8

    Mam plz do videos on Java, phyton

  • @shalumall8014
    @shalumall8014 Год назад

    Mam ur teaching method is very nice👍

  • @pranavwakte9448
    @pranavwakte9448 2 года назад +1

    Mam, can you tell the best programming book for python and Java??

  • @solarpump3688
    @solarpump3688 2 года назад +1

    You are best teacher

  • @asadjan1001
    @asadjan1001 2 года назад +2

    Asad from Pakistan ur teach style is very fabulous mam

  • @Ezjava01
    @Ezjava01 2 года назад +2

    The answer to your assignment is
    --For u.a is some garbage value,and
    --for u.b is 97;

  • @nandhagopal9304
    @nandhagopal9304 2 года назад +5

    Mam explain structure padding and structure packing

  • @Bornkill-jq7ts
    @Bornkill-jq7ts 2 года назад +2

    Mam we can use methametical expressions in union

  • @mathsfortune6thclass
    @mathsfortune6thclass 2 года назад +3

    Mam,is there any good book for c programming which covers everything about c programming in detail and easy to understand?Also,mam is there any good book for introduction to computers which covers topics like alu,memory(ram,rom),processor, operatingsystem,software,hardware,motherboard.Please mam reply.

  • @qazicode4467
    @qazicode4467 2 года назад +2

    Mam Please make a tutorial on "Enumeration"

  • @Theabhialone
    @Theabhialone 2 года назад +2

    Mam you are great amazing 💥

  • @deganath106
    @deganath106 11 месяцев назад

    mam a small correction at 9;15 - u.a is not garbage value it is 9.2

  • @AnkitThakur-dp8gx
    @AnkitThakur-dp8gx 2 года назад +2

    Tmare padhaane ke tarikhe se pyaar hogya h mjhe or tumse bhi

  • @olisykes379
    @olisykes379 Год назад

    I love u so much ..... As a teacher

  • @saradiwan6734
    @saradiwan6734 2 года назад +3

    ma'am it will print a as the ASCII value of 97 is a

  • @18fatima15
    @18fatima15 Месяц назад +1

    11:39 It should be struct demo *ptr = &s
    17:07
    #include
    union abc
    {
    int a;char b; float c;
    };
    int main()
    {
    union abc u;
    union abc *ptr=&u;
    u.a=1;
    u.b=97;
    printf("a=%d",ptr->a);
    printf("
    b=%c",ptr->b);
    return 0;
    }
    OUTPUT:
    a=97
    b=a

  • @meghapriya7641
    @meghapriya7641 2 года назад +2

    Mam please make videos on Compiler Design as well.

  • @machanisomu
    @machanisomu 2 года назад +3

    Nice explanation

  • @srinivaschinthaginjala
    @srinivaschinthaginjala 5 месяцев назад

    I LOVE YOU MADAM❤❤❤❤❤. REALLY UR TEACHING AMIZING❤❤❤❤❤

  • @archanafugare6895
    @archanafugare6895 2 года назад +2

    At 6.19 memory will be 12 bytes not 9 bytes as structure padding. If char is last var of structure then 9 bytes will be allocated

    • @leo5457
      @leo5457 Год назад

      Structure padding means!?

  • @riyagupta1841
    @riyagupta1841 2 года назад +21

    Mam pls also cover enum and malloc,calloc,realloc inC before going on file handling pls mam plssss 🥺

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  2 года назад +12

      Okiee

    • @saptarshibiswas8652
      @saptarshibiswas8652 2 года назад +1

      @@JennyslecturesCSIT yes ma'am, please cover those topics, it is very important, plzz 🥺

    • @riyagupta1841
      @riyagupta1841 2 года назад

      @@JennyslecturesCSIT Mam plz upload next video 🥺

  • @JaiminPrajapati-ke6gr
    @JaiminPrajapati-ke6gr 2 года назад +2

    Mam please make video on sql /pl-sql full course..

  • @30amankaushik29
    @30amankaushik29 2 года назад +6

    Ma'am please bring back to back lectures its my request to u is that first please complete the c course and after completing it then please bring lectures on java courses.

    • @coding1415
      @coding1415 2 года назад

      ruclips.net/video/5gHUgIAC8Wo/видео.html C language

  • @sabithagireesh7662
    @sabithagireesh7662 Год назад +1

    Thank you mam for such helpful class🙂 all my doubt are cleared
    Love from kerala ❣️

  • @mulualemkebede3818
    @mulualemkebede3818 2 года назад +2

    Respect!!!

  • @azannasir8895
    @azannasir8895 2 года назад +8

    Your teaching method is really amazing 😍
    Love from Pakistan 🇵🇰❤️

  • @sumanthb178
    @sumanthb178 Год назад

    Mam structure padding will not be applicable to all compilers?

  • @soniasonia4292
    @soniasonia4292 2 года назад +2

    Dear Mam,
    I am your old follower and fan but i need your help.
    Please teach me this program program.
    Write a C function to evaluate the series
    sin(x)= x - (x**3 / 3!)+(x**5 / 5!) - (x**7 / 7!) + .... to five significant digits.

  • @IntellectualWarfare441
    @IntellectualWarfare441 2 года назад +3

    Practical on Laptop vs Blackboard

  • @jsahoo3615
    @jsahoo3615 2 года назад +4

    Hello mam, can you upload full java programming language all videos 🙏🙏🙏

  • @talhashah3986
    @talhashah3986 2 года назад +1

    Thank You

  • @pranav-wi5uf
    @pranav-wi5uf 2 года назад +1

    No mam size of the structure is not directly calculated. Its wrong data padding will there in structure for processors optimization and also how you are declearing.

  • @ashwinijoshi7633
    @ashwinijoshi7633 2 года назад +1

    c program implement non preeptive priority sheduling with ganntt

  • @rajendraboke6927
    @rajendraboke6927 2 года назад +2

    Ek number 😍😍

  • @divya-hj7xh
    @divya-hj7xh 2 года назад +4

    Mam is C sharp is there in engineering syllabus. What is the difference between C and C#.

  • @abdulbasit6618
    @abdulbasit6618 7 месяцев назад

    can anyone please tell me , if I want to know the size why there only format specifier (%d) is used, cannot I use the format specifier of any other data type available in the union or struct member to know the size. please let me know.🤔🤔🤔

  • @Krishna_Raj11
    @Krishna_Raj11 2 года назад +3

    mam I am MCA student can i prepare net exam for making a professor?

  • @11TLK
    @11TLK 2 года назад +1

    Mam mera najar nahi hat raha aapse
    Ek to aap bahut khubsurat hai
    Or aap explain bhi aachha karte hai 🇮🇳🇮🇳🇮🇳
    I love you 💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞💞

  • @nagarjuna4541
    @nagarjuna4541 Год назад +1

    Madam int size is 2bytes

  • @shubhamkumarsharma1568
    @shubhamkumarsharma1568 2 года назад +2

    Mam please makr playlist on c++

  • @beniem.1755
    @beniem.1755 Год назад +2

    In the struct memory allocation, why did you not take the padding into account. I am a bit confused.

  • @abidyousuf2927
    @abidyousuf2927 2 года назад +5

    Plxx provide lectures on python programming

  • @aparnamane4899
    @aparnamane4899 Год назад +1

    thank you mam❤

  • @SaraswotiKhadka
    @SaraswotiKhadka Год назад +1

    a= garbage value, b = 97.(last value)

    • @xylonature7787
      @xylonature7787 Год назад

      Bro.... That's a char data type but the initialized value is of int

  • @BTCIV_AyushMalviya
    @BTCIV_AyushMalviya 2 года назад +2

    Thankyou Mam

  • @veerbista2004
    @veerbista2004 3 месяца назад

    ma'am at the end of this video i saw your necklace 🤭😃 its suits on you perfectly! 😉😍🤩

  • @ankammaraochintala2509
    @ankammaraochintala2509 2 года назад +3

    Thank you madam

  • @sanjanapanwar3844
    @sanjanapanwar3844 2 года назад +12

    Ma'am after this please start Java

  • @neepunpatil5201
    @neepunpatil5201 2 года назад +3

    Ma'am why don't you use dark theme Vs code it's good for eyes

  • @sunilmaurya6892
    @sunilmaurya6892 2 года назад +2

    mam pls inc the quality of videos

  • @pritmonpara406
    @pritmonpara406 2 года назад +2

    File handing per video banavo

  • @user-lv2eu2kd7e
    @user-lv2eu2kd7e 10 месяцев назад

    Mam what is the memory bytes of the int

  • @ravitejatiruveedhulablocks1367
    @ravitejatiruveedhulablocks1367 2 года назад +2

    plaese complete asap

  • @UchihaItachiSharin
    @UchihaItachiSharin 2 года назад +1

    Maam how can I ask you doubts?

  • @Raam1827
    @Raam1827 Год назад +1

    Is it need to if
    struct student s1;
    struct student *ptr;
    ptr = & s1; or simply we can assign
    ptr = s1; because s1 holds base address

    • @leeparrr
      @leeparrr Год назад +1

      yes if u meant to say s1 holds it's own address then u can do so...

  • @pawarkiran3171
    @pawarkiran3171 2 года назад +2

    Mam I request to in next month exams ara held so important questions explain mam I grandly request,🙏

  • @actioncamera8045
    @actioncamera8045 2 года назад +1

    😍Goog

  • @A1Tech6111
    @A1Tech6111 Год назад +1

    Thanks medam

  • @tusharsrivastava5471
    @tusharsrivastava5471 2 года назад +3

    Mam you r so cute. only bcoz of you i love to study c language

  • @a.t7119
    @a.t7119 Год назад +1

    Size of the structure is 12 not 9

  • @abdulrahimjalloh363
    @abdulrahimjalloh363 8 месяцев назад

    Thanks mam

  • @thirupathimerugugoud1025
    @thirupathimerugugoud1025 2 года назад +2

    Mam,can you teach java language also

  • @AnkitThakur-dp8gx
    @AnkitThakur-dp8gx 2 года назад +1

    beautiful and sweet mam teach us better

  • @i_am_with_u-7.
    @i_am_with_u-7. 2 года назад +2

    Tell me about Java language

  • @elaprolulokesh9052
    @elaprolulokesh9052 2 года назад +4

    Mam Can you start python ??

  • @muthaiyavishwanath5376
    @muthaiyavishwanath5376 2 года назад +2

    Mam can you teach vb.net course

  • @chavvasravani9462
    @chavvasravani9462 2 года назад +2

    mam which online course is best for programming mam i am beginner mam i completed by 12th recently
    plz suggest me mam

    • @FrameCyborg402
      @FrameCyborg402 Год назад

      Depends on what language you are learning

  • @Fitness_Brand06
    @Fitness_Brand06 Год назад +1

    Ma’am you eyes is so beautiful ❤

  • @riyagupta1841
    @riyagupta1841 2 года назад +2

    Mam pls upload video...😃

  • @satyajitmanna8501
    @satyajitmanna8501 2 года назад +1

    print a= garvag value and b = 97

    • @more-omkar
      @more-omkar 2 года назад +2

      No it prints a=97 and b=a.

  • @anujeetkunturkar780
    @anujeetkunturkar780 2 года назад +1

    1st it will print a=97 and b = garbage value or Nothing ........!!

  • @baseerahmeddero2661
    @baseerahmeddero2661 2 года назад +1

    kal kaha gye tha ap .hmra modelling and simulation ka paper tha .wesy to ap sub course prty hain .kal nhi aya thai ap

  • @Hackworm
    @Hackworm 2 года назад +3

    Mam please provide c language notes

  • @aryantripathi5574
    @aryantripathi5574 2 года назад +2

    Mam int is 2 byte of memory location.

    • @leeparrr
      @leeparrr Год назад

      in some compilers its 4bytes