union in c programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024

ความคิดเห็น • 33

  • @tamilmaranc
    @tamilmaranc 4 ปีที่แล้ว +2

    excellent video madam

  • @kingnehmna7810
    @kingnehmna7810 4 ปีที่แล้ว +3

    Remember certain data types have memories based on compiler. Int can be 2 to 4 bytes, etc. All depends on the compiler, hence good to use sizeof(type). Good video

  • @theashmedai007
    @theashmedai007 4 ปีที่แล้ว +2

    Does it mean only one field is used at a time ?

  • @sinaraisi2784
    @sinaraisi2784 3 ปีที่แล้ว +1

    Thank u Ma'am

  • @AbhishekKumar-fb3pv
    @AbhishekKumar-fb3pv 3 ปีที่แล้ว +1

    Thanks mam

  • @vitalys4029
    @vitalys4029 4 ปีที่แล้ว +1

    could not understand anything after 8:45, :(
    why do we need arrow ?? the arrow should be used to access memory location, I got that, so what is the point ?
    what is the purpose of using unions ? if 2of 3 values are garbage? to save memory?

  • @chanchalrajput5497
    @chanchalrajput5497 6 ปีที่แล้ว +6

    Thank you mam very helpful video

  • @rashmidhalkari4449
    @rashmidhalkari4449 4 ปีที่แล้ว +2

    Truly your videos are very useful thank u so much mam ❤️

  • @harishkashyap7327
    @harishkashyap7327 4 ปีที่แล้ว +2

    Got confused post the output a and b as garbage value, need to understand with the help of logical example.
    Didn't get the requirement of union keyword, please help me out

    • @zububabu8249
      @zububabu8249 ปีที่แล้ว

      Less space is required in union than structure

  • @meganathans7823
    @meganathans7823 5 ปีที่แล้ว +1

    Very useful mam

  • @seethavarirushitha3567
    @seethavarirushitha3567 5 ปีที่แล้ว +2

    Mam integer also 4 bytes

  • @amarbabu6493
    @amarbabu6493 2 ปีที่แล้ว +1

    But thank you mam

  • @siddharthjha_18
    @siddharthjha_18 4 ปีที่แล้ว +3

    yrr... ek baat btaao tum log hindi mein kyu nhi bolte!!

  • @tamilmaranc
    @tamilmaranc 4 ปีที่แล้ว +1

    voice is too clear madam

  • @smalinux
    @smalinux 5 ปีที่แล้ว +1

    Amazing. thank you

  • @mandlaganesh1834
    @mandlaganesh1834 6 ปีที่แล้ว +1

    Super madam

  • @dineshnagar3606
    @dineshnagar3606 5 ปีที่แล้ว +1

    Nice cp

  • @jaggis4914
    @jaggis4914 3 ปีที่แล้ว +1

    2 Bytes for int? What year are you living in? Few misleading claims in the video!

  • @amarbabu6493
    @amarbabu6493 2 ปีที่แล้ว +1

    Medam operaters cheppandi medam

  • @likhithuvbdl2376
    @likhithuvbdl2376 5 ปีที่แล้ว +1

    👌👍👍

  • @nobuddy7951
    @nobuddy7951 5 ปีที่แล้ว +1

    thnks alot

  • @kusha9823
    @kusha9823 5 ปีที่แล้ว +1

    thanks you mam

  • @dineshnagar3606
    @dineshnagar3606 5 ปีที่แล้ว +1

    Thanks

  • @senthilsenthil9297
    @senthilsenthil9297 5 ปีที่แล้ว +2

    Very useful but using for tamil

  • @BiswajitDas-jd1ji
    @BiswajitDas-jd1ji 5 ปีที่แล้ว +1

    Which compiler assigns int as 2 byte? 🤔

    • @divaynagar1929
      @divaynagar1929 5 ปีที่แล้ว

      16 bit operating system

    • @siddharthjha_18
      @siddharthjha_18 4 ปีที่แล้ว

      TC++ compiler..assign int as 2 byte and 32-bit compiler or you can say... gcc compiler uses 4 byte for int datatypes....hope you understand..

  • @aniketmallya6887
    @aniketmallya6887 6 ปีที่แล้ว +2

    3:21 I think that integer data type takes 4 bytes in the memory

    • @AllTechSavvy
      @AllTechSavvy 6 ปีที่แล้ว +4

      in Modern int-32bit compiler take 4Byte But in Old Compiler it takes 2 Byte Hope U Understand

    • @raksharani2156
      @raksharani2156 5 ปีที่แล้ว

      No int take 2 bytes

    • @naj301
      @naj301 5 ปีที่แล้ว

      int is 32 bits which is 4 bytes. A short is 16 bits which is 2 bytes.

  • @kethireddyshirisha6453
    @kethireddyshirisha6453 5 ปีที่แล้ว +1

    M