Structures, Unions & Enums in C++ | C++ Tutorials for Beginners #14

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • Download the best IDE for C, C# and C++: bit.ly/WholeTo...
    ►Source Code & Resources: codewithharry....
    ►This video is a part of my C++ playlist: • C++ Tutorials In Hindi
    ►For Doubt Solving, Brain Storming Sessions & guaranteed replies, join the channel membership here: / @codewithharry
    ►Click here to subscribe - / @codewithharry
    ►Checkout my English channel here: / programmingwithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Python Tutorial In Hin...
    ►Python Complete Course In Hindi - • Python Tutorials For A...
    ►C Language Complete Course In Hindi -
    • C Language Tutorials I...
    ►JavaScript Complete Course In Hindi -
    • JavaScript Tutorials I...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Django Complete Course In Hindi -
    • Python Django Tutorial...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithhar...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

КОМЕНТАРІ • 699

  • @sksadiruddin4191
    @sksadiruddin4191 2 роки тому +107

    11:52 , it is not garbage value , but it is the ASCII code of 'c' i.e. 99 , if we use 'd' then it will show 100

    • @jussacoder1911
      @jussacoder1911 Рік тому +14

      its just in cases of char , for others it shows garbage values

    • @Darkgamingop7
      @Darkgamingop7 Рік тому

      you are right bro

    • @veeee5577
      @veeee5577 9 місяців тому +1

      Thanks for informing us 🔥

    • @SadharanLadkaIsBack
      @SadharanLadkaIsBack 6 місяців тому +4

      but bro the cout statement shows m1.rice so it's garbage value only

    • @SadharanLadkaIsBack
      @SadharanLadkaIsBack 6 місяців тому +1

      check now at 12:04

  • @Vv_cherry
    @Vv_cherry 4 роки тому +181

    idk why? You make such good content and people enjoy the free stuff without even hitting the like
    is that so hard.
    I feel sorry man....
    btw awesome content. nowhere to find such good ones

    • @mayankbaber9384
      @mayankbaber9384 3 роки тому +4

      gazab ki baat ye hai ki there are some ppl who have disliked this video...

    • @cs29harshazad22
      @cs29harshazad22 2 роки тому +5

      i dont know about others but i smash like at the time of clicking the video

    • @vikramdongare9717
      @vikramdongare9717 2 роки тому +4

      @@cs29harshazad22 me also bro

    • @Lack_Of_Enemies
      @Lack_Of_Enemies Рік тому +1

      @@cs29harshazad22 usss

    • @i_h_ishan
      @i_h_ishan 2 місяці тому

      pura dekte vi ho kya?

  • @mayukhmandal4920
    @mayukhmandal4920 3 роки тому +119

    Harry Bhaiya, I just got to know that you are an alumnus of IIT Kharagpur and I am also a 3rd-year undergraduate student of the metallurgy dep at IIT Kgp. As you know, Our placements are knocking at the door, so I came into your channel since I had a very poor interest in coding. But now, I am bound to do it for the placement purpose and tbh you have instilled the motivation for coding into me by creating such amazing programming language tutorial videos through your youtube channel and that too for free of cost. I will forever be indebted to you, bhaiya. Thank you so much

    • @ahwabanmukherjee5065
      @ahwabanmukherjee5065 Рік тому +5

      Hello! I'm a fresher of EECE Dual this year :) Very excited to go to the campus

    • @pushparghyamullick3792
      @pushparghyamullick3792 Рік тому +1

      @@ahwabanmukherjee5065 Me too :-)

    • @deceptivedawwg1111
      @deceptivedawwg1111 Рік тому +9

      I'm a freshie at NIT ROURKELA CSE :)
      IIT ni to NIT hi shi :)

    • @borntostrike1212
      @borntostrike1212 Рік тому

      @@deceptivedawwg1111

    • @vanshikarathi2356
      @vanshikarathi2356 Рік тому +2

      hey ....since i also started learing c++in my 3rd year...i was curious to know if you got the placement.(i am worried that i started a little late , that's why i was asking)

  • @arshadmapari9500
    @arshadmapari9500 2 роки тому +67

    Thanks bhai, best explanations!
    TIP : Enum is short for enumerate, meaning to allot a number. Another way to understand enums :D

    • @adityagurjar3371
      @adityagurjar3371 Рік тому +1

      what is the use to enumerate

    • @arshadmapari9500
      @arshadmapari9500 Рік тому +2

      @@adityagurjar3371 You can allot a number to (enumerate) each item to make it easy to access

  • @SubhamKumar-9009
    @SubhamKumar-9009 3 роки тому +105

    🔴 5:49🔴All Shubhams unite😂😂
    Big fan harry bhai💛❤️

  • @heeru379
    @heeru379 3 роки тому +14

    Esa lag rha hain Jese Harry bhai ne yhe course C sikh kr aye logo ke liye banaya hain. Kyunki Harry bhai ne C language ke course me ekdam detail me padhaya hain. Lekin C++ course me Harry bhai ne jaldi jaldi padha diya.

    • @kushal6065
      @kushal6065 3 роки тому +3

      ha exactly. SO I learnt structure,union and enumeration from another channel completely and easily

    • @thearyan_bgmi3400
      @thearyan_bgmi3400 13 днів тому

      ​@@kushal6065which one?

  • @PsychologyRemix
    @PsychologyRemix 3 роки тому +140

    harry.salary = 1200000...( thode or laga lete hain) 🤣🤣
    👍👍

    • @tushargogiya4017
      @tushargogiya4017 3 роки тому +1

      abhi km h

    • @reverbism
      @reverbism 3 роки тому +3

      same yhi dakh ky comment krny aia tha lol

    • @nikhilrawat3959
      @nikhilrawat3959 3 роки тому +11

      Km hai mere liye fir bhi koi baat nhi chla lenge Ghar 😂😂 nice Harry sir. 👍

    • @hemangkrish0734
      @hemangkrish0734 2 роки тому

      @@nikhilrawat3959 me @12000 ,gazzab bezzati hai

  • @scoc55vora15
    @scoc55vora15 2 роки тому +7

    16:00 Very Much Detailed Pinpoint and in depth Analysis of Enum by 0 & 1 Test

  • @AnEngineerHuman
    @AnEngineerHuman Рік тому +15

    Day-10
    completed upto Tutorial-14
    Date-12/12/2022
    Time-22:32
    Topic-Structur_Union_And_Enums
    thank you harry bhai

  • @flashbhaskar
    @flashbhaskar 3 роки тому +126

    Very good video, one correction -- 12:00 - the "99" what you are getting is the ASCII value of "C" as the value is overwritten. It is not a garbage value... very minor correction :)

    • @gauravmak2394
      @gauravmak2394 2 роки тому +3

      rice is there in cout then howcome 99 or the ascii value of car is appearing even it wins

    • @ashutoshyadav9382
      @ashutoshyadav9382 2 роки тому +11

      @@gauravmak2394 the value "c" is assigned to rice as harry says but as the DATA TYPE of rice is "int" so it will give the ASCII value of "c".
      if u want to check change the DATA TYPE of rice to "char". it will give you "c" as output....

    • @ashutoshyadav9382
      @ashutoshyadav9382 2 роки тому +2

      RIGHT........

    • @thesmartone6601
      @thesmartone6601 2 роки тому +1

      @@ashutoshyadav9382 But the value 'c' was assigned to car , then how come on printing rice we are getting ASCII value of 'c'?

    • @brahmarajrathod3091
      @brahmarajrathod3091 2 роки тому +1

      @@thesmartone6601 because the data is saved in same space those 4 bytes are interpreted in different way for union this way it saves space

  • @ankitjain-1
    @ankitjain-1 2 роки тому +50

    at 14:27 this is not any bug in code runner extension, it's a feature that you can run partial code. When you select some code in the editor and run it using code runner extension the selected part of the code gets executed. You can turn off this feature in the settings.

  • @Web47
    @Web47 4 роки тому +15

    You are a person that regular or alternate day upload your videos ..You are doing very well..great job bro

  • @codewithanuj1762
    @codewithanuj1762 3 роки тому +31

    Hi Harry highly appreciated, I am from Los Angeles and your tutorial helped me crack the interview at apple. I learned C++ in 2 hours. Class and pointers that all they asked. By the it will be very helpful if you can create tutorial on bubble sorting, swapping, Fibonacci, algorithms for an interview it will be great help. In all the interviews in USA all tech companies they ask, Array, Arranging, Descending, Fibonacci, Bubble Sorting, Swapping algorithms that it.

    • @aryan7069_
      @aryan7069_ 3 роки тому +3

      you understood hindi ? nice

    • @vaibhav7457
      @vaibhav7457 3 роки тому +4

      really they asked you array , bubble sorting Fibonacci , swapping . I studied this in school.

  • @akshayagnihotri
    @akshayagnihotri 3 роки тому +414

    harry sir , I noticed one thing in yourr most of the videos ,you always used a name rohandas , who is rohan das, can u pls explain 😁😁

    • @ItsDoros
      @ItsDoros 3 роки тому +82

      Bachpan ke langotiya yaar hai...

    • @bibekray5874
      @bibekray5874 3 роки тому +66

      Rohan das mere coaching ka topper tha
      Abhi IIT kgp mai hai😂

    • @ItsDoros
      @ItsDoros 3 роки тому +12

      @@bibekray5874 Kia tumlog jante ho... Harry bhai ka Asli nam.....?

    • @SSCO-DANISHAHMEDWALIULLAHSIDDI
      @SSCO-DANISHAHMEDWALIULLAHSIDDI 3 роки тому +6

      @Rajat Nahata sach me ? 😳😳😳

    • @wwefans1587
      @wwefans1587 2 роки тому +1

      🆂︎🅰︎🅷︎🅸︎ 🅷︎🅰︎🅸︎ 🅼︎🅰︎🅸︎🅽︎🅴︎ 🅱︎🅷︎🅸︎ 🅳︎🅴︎🅺︎🅷︎🅰︎ 🅷︎🅰︎🅸︎🤔🤔🤔🤔🤔🤔

  • @dank_raider
    @dank_raider 4 роки тому +91

    3:14 , 120000000 months jo kam hai mere liye fir bhi kam chala lenge 🤣🤣

    • @GaneshKumar-qs9kn
      @GaneshKumar-qs9kn 3 роки тому +8

      Kam isliye hai kionki usme tax bhi bharna prega n....

    • @ankitkushwaha633
      @ankitkushwaha633 3 роки тому +2

      @@GaneshKumar-qs9kn kitna bhi bharna pade 6 clole milenge na

    • @GaneshKumar-qs9kn
      @GaneshKumar-qs9kn 3 роки тому +1

      @@ankitkushwaha633 haa haa bilkul milenge bs hr mahine koi bank ya fir kisi bahut Amir aadmi Ko lut lo...
      Fir 6 crore nhi blki 15-20 crore milenge

    • @nirajsingh7086
      @nirajsingh7086 3 роки тому +2

      @@ankitkushwaha633Toh fir toh haary ko hi lutna padega

    • @SciTechi
      @SciTechi 3 роки тому

      @@GaneshKumar-qs9kn 😂😂😂😂😂😂😂😂😂😂😂

  • @siddharthkandhway7950
    @siddharthkandhway7950 3 роки тому +11

    At 11:46 , that is not a garbage value. In unions memory locations are shared among many variable and at a time only one of the variable can be accessed. When you defined the character 'c' as the newest variable then, it will show correct output for car, but when you output rice which is actually an integer, then it (character c) will be type converted to an integer(with the help of ASCII values).

    • @rupeshyadav2097
      @rupeshyadav2097 3 роки тому

      Wahi to bola ki overwrite hojati hai uski value😶

  • @shubhupote3915
    @shubhupote3915 4 роки тому +47

    My name is Shubham
    Name common
    Personality unique🤣🤣

  • @AmanRaj-nn6xx
    @AmanRaj-nn6xx 4 роки тому +29

    Sir,first of all thank you for providing us your lectures for free,it's been really helpful for students like us.I had a small query about the books or online platform to practice questions on python along with your videos as I want to learn python to an expert level but confused from where to practice the questions with goes along with your video tutorials,Thank you.

  • @KrishnaJaiswal-xs2jd
    @KrishnaJaiswal-xs2jd 4 роки тому +25

    Your explanation style is really great and your sound always seems familiar.
    Thanks for making our path easier.

  • @Shubhams_Globe_Trek
    @Shubhams_Globe_Trek 3 роки тому +11

    Im very happy 😌 when you take variable names or employees name Shubham. In c language course also there is Shubham Shubham 🤭 and hear also Shubham

    • @Shubh_X_Trend001
      @Shubh_X_Trend001 2 роки тому +1

      Bhai mera name bhi shubham I'm very happy kii. Harry bhai in variables mein shubham name Ke rhe hai.aisa LG rhaa ki real mein Harry bhai. Mujhe pdaa rhe ho ki shubham aisa Kr vaisa krrr. Mujhe boht Acha lgta haiii. Keep it sirr. We lv u sirr. ❤️❤️❤️❤️❤️❤️❤️ May God Bless uuuuuu

  • @gouravmishra9803
    @gouravmishra9803 4 роки тому +24

    3:15 ... 🤑 per month aur kaya chaiye

  • @sayakmondal4610
    @sayakmondal4610 2 роки тому +3

    14:25 Here you're running the code by selecting some code that's why it is giving error I think it is not an code runner error. Thanks❤.

  • @thedragonsgaming5858
    @thedragonsgaming5858 2 роки тому +3

    12:00 Its not a garbage value the newly declared variable overrides previous variable's memory location hence it converts to int ascii 'c'=99.

  • @anistar_yt
    @anistar_yt 7 місяців тому

    A noob code:
    #include
    using namespace std;
    int main ()
    {
    int i;
    int marks[4]= {28,30,35,48};
    do{
    cout

  • @rajanjain1979
    @rajanjain1979 2 роки тому +7

    in the structure variable the total size wont be 9 byte, it will be 12 because of structure padding.

  • @Sousa2255
    @Sousa2255 2 роки тому +2

    5:52 Shubham is none other than our legendary "BEAST BOY SHUB"

  • @zainuldin9095
    @zainuldin9095 3 роки тому +7

    sir your teaching method is too good .but ,please give easy examples which we can understand or life friendly.

  • @bhuwanmalik2034
    @bhuwanmalik2034 4 роки тому +9

    I am really learnt from this lecture

  • @abheygupta2332
    @abheygupta2332 4 роки тому +13

    14:30 sir vo error isliye aaya tha cuz you ran a program after selecting some portion

  • @r_nikhil_kumar
    @r_nikhil_kumar 2 роки тому +6

    11:50 it wasn't garbage value, it was ASCII code of 'c' bcz rice variable is of integer datatype

    • @taimoorgamerz1560
      @taimoorgamerz1560 Рік тому

      No that was char Data type check again

    • @r_nikhil_kumar
      @r_nikhil_kumar Рік тому

      @@taimoorgamerz1560 you should recheck brother, rice is an integer type variable

  • @shashikantkumar-pz4jv
    @shashikantkumar-pz4jv 4 роки тому +7

    very nicely explained all the concepts. love you bro. keep teaching us.

  • @rushabhnagda9267
    @rushabhnagda9267 2 роки тому +2

    bhai thank you so much, because of your easy method of explanation i am able to understand c++ and apply it in the college syabus, once again thankyou and love your work and tutorials keep it up man

  • @SrinjoyPramanik1174
    @SrinjoyPramanik1174 3 місяці тому +1

    That 99 is not a garbage value. That is the ASCII value of 'c'.

  • @rishikeshthakur6497
    @rishikeshthakur6497 3 роки тому +5

    Thank you sir for providing such a great lecture. Hat's off you

  • @thug_meme3160
    @thug_meme3160 4 роки тому +1

    Bhai ae video me etna maza aya ki mene apni comedy videos ki list me dal diya or jab bhi mood kharab hota he me ye video dekh leta hu bhai
    Bhai aap bahot hi acha kam kar rahe ho

  • @vaibhavbhopale1270
    @vaibhavbhopale1270 Рік тому +2

    Thanks harry bhai

  • @rm3569
    @rm3569 3 роки тому +8

    If notes are available then upload in this series
    Your notes are very helpful

  • @Aditya-kumar-129
    @Aditya-kumar-129 3 роки тому +1

    @CodeWithHarry not sure but at 11:45 when we run the program it doesn't give the garbage value but it gives the ascii value of 'c'.

  • @vlogsbyusmannn
    @vlogsbyusmannn 8 місяців тому

    or ma UNI jata hu BSCS krny kuch pallay ni prta to apka lecture dekhta hu sb smjh a jati ha Love from Pakistan ❤

  • @shubhamsaini4871
    @shubhamsaini4871 Рік тому +2

    5:51
    Harry bhaiya, Mai hu shubham.
    😄😄😄

  • @kumarshubham4327
    @kumarshubham4327 2 роки тому +1

    5:48 Yes it indeed a common name .In my batch there are three Shubham including me.

  • @Xamji-ge3qm
    @Xamji-ge3qm Рік тому +1

    Thanks Harry , now I can easily play with structures.. 😇

  • @hafizakhtar6561
    @hafizakhtar6561 7 місяців тому

    #include
    using namespace std;
    int main(){
    int i;
    int marks[5]={23,24,25,26,27};
    cout

  • @sanjanatyagi3603
    @sanjanatyagi3603 3 роки тому +1

    I love his videos , i m blessed that i could find this channel awesome teaching i love it these videos are helping me to prepare for my placememts n the best part is that i m enjoying watching his videos n yeah after all it is free so thats the best part n i recomment you all to watch all his tutorials i m currently watching web development n c++ and from my personal experience as i have tried other platforms also but i found this the best among all ❤️❤️❤️❤️

  • @Ashish_Kumar_Sharma
    @Ashish_Kumar_Sharma Рік тому

    Around 12:00 ,while explaining union, the value of 'c' (99) is not garbange but ANSCII

  • @amey97
    @amey97 Рік тому +1

    Thank You!

  • @singingcomparison9255
    @singingcomparison9255 2 роки тому

    11:50 it is nor garbage or random number. If you notice, the 99 is the acci code of 'c'

  • @gamermashoo9756
    @gamermashoo9756 11 місяців тому

    Challenge Accepted!
    int main(){
    //arrays with while loop
    int maths[5]={12,23,34,45,56};
    int j = 0;
    while (j

  • @ShubhamTiwari-ng7sp
    @ShubhamTiwari-ng7sp 2 роки тому +1

    5:56 mai bhi hu shubham , bhaiya aapka dost. thank you for this course.

  • @BlackScreenProductions
    @BlackScreenProductions 2 роки тому +1

    Write a C ++ Program. We have a day-to-day record of USD price in PKR for last 100 weeks. Find the week, which has a highest variation in PKR, while a base price is 160Rs = 1 USD. Also, find which week has the highest average USDprice
    Sir Please Solve The Problem

    • @JapjotSingh-po9us
      @JapjotSingh-po9us Рік тому

      To get the converted currency value we will multiply our float variables basic conversion values with the dollar amount entered by the user.

  • @merazahmad55
    @merazahmad55 4 роки тому +6

    Python series me ajj Maine health management ka project comment kiye hai check pls and reply

  • @shubhamiitg
    @shubhamiitg Рік тому +2

    thanks bhaiya I'm shubham jaiswal🙂🙂🙂🙂

  • @deltaR711
    @deltaR711 Рік тому

    Thank you, for good explanation. However, at 11:50 of video, the output value is not a garbage, it's the ASCII value of letter 'c'.

  • @darshansuryawanshi5549
    @darshansuryawanshi5549 15 днів тому

    06:14 use of typedef in cpp

  • @muddusarzulfiqar1657
    @muddusarzulfiqar1657 4 роки тому +3

    Kindly Ans it!
    Sir asa ho skta ha enum ma kay lets ma khe pa 1 lekhu to waha pa 1 pa jo b stor ha let's breakfast stor ha to kaaya hmm uske value Get kr skty ha????

  • @devkansara9385
    @devkansara9385 8 місяців тому

    I think m1.rice = 99 was not a garbage value. Since rice is of integer type, it is showing ASCII value of 'c' stored in m1.car.

  • @aryan7069_
    @aryan7069_ 3 роки тому +1

    Music in end gives me different vibe :)

  • @rajanijaiswal333
    @rajanijaiswal333 4 роки тому +3

    Thank u harry bhai
    please bring exercise fast

  • @nothuman9450
    @nothuman9450 3 роки тому +1

    12:30 ,enum

  • @truefalse7059
    @truefalse7059 Рік тому

    error in ur code by code runner is a feature not a bug that occurs because u run code by selecting a portion of code, in this case ; code runner pass only those selected line to compiler to compile and run that's why it gives error because it not pass any info about main function or header files only those selected lines

  • @subhamadhikari2445
    @subhamadhikari2445 Рік тому

    5:50, Subham at your service 😉😊

  • @ShubhamKumar-du9mz
    @ShubhamKumar-du9mz 3 роки тому +1

    Mera v naam le liya harry bhai ne dil khush ho gya😂

  • @chavanram5649
    @chavanram5649 3 роки тому +1

    Thanks sir for free provide lucture c++🙏🙏🙏🙏🙏

  • @glitchy_star_classes6276
    @glitchy_star_classes6276 Рік тому

    10:12 . umm.. it actually takes 12 bytes.. because, considering a char takes 1 byte and int takes 4 bytes.. a memory block which is grouped in 4 cells (4 bytes) each.. what happens is.. the first block of memory stores 1 int.. 2nd block stores a char in the first cell of the memory block.. now the remaining 3 cells of memory is unused but the memory cant store one float. so what the compiler does is that, it stores the float in the next block (wasting the 3 memory cells in the block that is storing char..

  • @arneshguru4263
    @arneshguru4263 3 роки тому +1

    every video of yours deserves a like.
    🙂

  • @Ravin_raze
    @Ravin_raze 3 роки тому +7

    no need to write struct everytime in c++ for defining employee data type it is required in c everytime but in c++ we can just write "employee harry;"

  • @jashanpreetsingh4139
    @jashanpreetsingh4139 2 роки тому

    I searched about harry and real name is harris ali khan . A successful coder and many other achievements

  • @shubhamkhetan02
    @shubhamkhetan02 4 роки тому +7

    5:51 Yup its me

  • @prachi1795
    @prachi1795 Рік тому +1

    Hiiii..harry..plz if u can help. I want to ask if I did my course with u but also want to get a certificate of it .how can i get it. Is there any site through which after giving a certain test i will be eligible to get a certificate

  • @all-roundercrew7516
    @all-roundercrew7516 2 роки тому +2

    Challenge accepted and done for all 3 loops:-
    #include
    using namespace std;
    int main(){
    int i=0;
    int CarNumber[]={2364, 3621, 3732, 1738, 2774};
    cout

  • @factzandcode
    @factzandcode 2 роки тому

    harry vai, in child hood: e code runner ki galti he😂😂( after getting error while running code)
    harry vai, future me🤠: code ko select karke mat run karo, ek tempcoderunner file generate ho jayega, or select kiya hua part hi run hoga😎

  • @sumitnayak2436
    @sumitnayak2436 2 роки тому

    Watch 3.03 to 3.16 🤩💥 kya bol diye sir

  • @prathameshbhosale879
    @prathameshbhosale879 2 роки тому

    Harry sir has some special obsession towards rohanDas...😅😅😅
    BTW, thanks for everything. You are literally like God 🙏 for me ... And I think for everybody who cannot afford paid tutorials. Thankyou again.🙏🙏

  • @TinyTuneTreasures.0
    @TinyTuneTreasures.0 2 роки тому

    #include
    using namespace std;
    int main()
    {
    int a;

    cout

  • @AM-wk5ei
    @AM-wk5ei Рік тому

    Thanks I know hindi now apart from c++

  • @mandippal33
    @mandippal33 2 роки тому

    //How I solve this problem in C++? When I wants to take Input from user its not //take the full book name with space, code was written in the "input" function
    #include
    #include
    using namespace std;
    struct book
    {
    int bid;
    char bname[20];
    float bprice;
    };
    book input();
    void display(book);
    book input()
    {
    book b1;
    cout

  • @SG-143v
    @SG-143v 10 місяців тому

    In union code
    m1.car='c';
    Output : 99 because of his ASCII code

  • @printfiamd5254
    @printfiamd5254 Рік тому +4

    Harry Sir can't we use arrow operators in C++ for initializing just like we did in C??

  • @shubhchaudhari7847
    @shubhchaudhari7847 4 роки тому +4

    5:53 I M Shubham😌🙌

  • @MEHAKFATIMANAQVI
    @MEHAKFATIMANAQVI 2 місяці тому

    you covered important topics very fast

  • @mayankbaber9384
    @mayankbaber9384 3 роки тому +3

    awesome video... but how to implement these concepts?

  • @surajkumarsingh4857
    @surajkumarsingh4857 Рік тому

    // C++ program to illustrate the use
    // of the unions
    #include
    using namespace std;
    // Defining a Union
    union GFG {
    int Geek1;
    char Geek2;
    float Geek3;
    };
    // Driver Code
    int main()
    {

    G1.Geek1 = 34;
    // Printing values
    cout

  • @gayatriagharde6829
    @gayatriagharde6829 2 роки тому

    Harry sir , your video clear concept and understanding point and helpful video...thank U so much

  • @dipayonghosh8236
    @dipayonghosh8236 3 роки тому

    m1. rice is printing ASCII code of char c and not garbage value.

  • @shubairabbas5480
    @shubairabbas5480 4 роки тому +3

    Sir plz textseract se OCR kaise banageye in python . Plz help sir.
    I tried many times but it will not install. Properly.
    Help sir pdf or image conversion ocr mn kaise banaega

  • @shubhamdhangar8790
    @shubhamdhangar8790 3 роки тому

    I m also Shubham😃.
    Watching this tutorial after learning c language from Harry bhai.

  • @amritanshtewari1574
    @amritanshtewari1574 2 роки тому +1

    7:13 important type def

  • @Khadijah_Shabir
    @Khadijah_Shabir 7 місяців тому

    Amazing ...Finally I got this concept

  • @rajeshingale3497
    @rajeshingale3497 2 роки тому

    Thanks for videos harry sir ,
    & My name also shubham

  • @btEkamdeepSingh
    @btEkamdeepSingh 3 роки тому +2

    what is use of this structure union and enum??

  • @yadav_utkar8h
    @yadav_utkar8h 3 роки тому +2

    Harry Sir I have a doubt ,
    Can we declare the structure both outside and inside int main() or only outside??

  • @abhijitmanna4524
    @abhijitmanna4524 3 роки тому +1

    bhaiya i already know struct and typdef struct as i came from learning c programming

  • @bhumikaagrawal3
    @bhumikaagrawal3 3 роки тому +1

    @CodeWithHarry It doesn't print garbage value. It prints the ASCII value of c at 11:45

  • @aihmad3133
    @aihmad3133 4 роки тому

    Nicely Explained ....From Pakistan

  • @UECAshutoshKumar
    @UECAshutoshKumar 2 роки тому +1

    Thank you bhaiya ❤️

  • @shalauddinyousuf9655
    @shalauddinyousuf9655 6 місяців тому +1

    Harry Bhai is best

  • @hariomgurjar1866
    @hariomgurjar1866 Рік тому +7

    union wala example bhut karab tha 😂

    • @TypeAvi
      @TypeAvi 5 місяців тому

      Aap hi sikha do bhai aake😊

  • @nileshshinde5940
    @nileshshinde5940 11 місяців тому

    harry bhai at 11:49 'c' ascii value is 99 so i think it prints the ascii value and not a garbage value reply me if i am right or wrong

  • @Singh_DhaliwalVlogs
    @Singh_DhaliwalVlogs 2 роки тому

    harry bhai ek advance level pe bhi bna do. sabhi log jo is course ko advance level pe chahte ho is comment ke reply thoko taaki harry bhai apna collage ko beat kre ,because there is harry bhai is codeing ke jeetu bhaiya

  • @pushpendra10001
    @pushpendra10001 3 роки тому

    you are awsome haary bhai
    thankyou for c++ i learn daily