Structures, Unions & Enums in C++ | C++ Tutorials for Beginners #14
HTML-код
- Опубликовано: 28 янв 2020
- Download the best IDE for C, C# and C++: bit.ly/WholeTomato-CWH
►Source Code & Resources: codewithharry.com/videos/cpp-...
►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.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
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
gazab ki baat ye hai ki there are some ppl who have disliked this video...
i dont know about others but i smash like at the time of clicking the video
@@cs29harshazad22 me also bro
@@cs29harshazad22 usss
pura dekte vi ho kya?
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
its just in cases of char , for others it shows garbage values
you are right bro
Thanks for informing us 🔥
but bro the cout statement shows m1.rice so it's garbage value only
check now at 12:04
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.
ha exactly. SO I learnt structure,union and enumeration from another channel completely and easily
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
Hello! I'm a fresher of EECE Dual this year :) Very excited to go to the campus
@@ahwabanmukherjee5065 Me too :-)
I'm a freshie at NIT ROURKELA CSE :)
IIT ni to NIT hi shi :)
@@deceptivedawwg1111
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)
Thanks bhai, best explanations!
TIP : Enum is short for enumerate, meaning to allot a number. Another way to understand enums :D
what is the use to enumerate
@@adityagurjar3371 You can allot a number to (enumerate) each item to make it easy to access
🔴 5:49🔴All Shubhams unite😂😂
Big fan harry bhai💛❤️
@Elon Manuel Bad acting guys 😃🤣🤣🤣
@@pranavajay5528 exactly
I am💙
Hello there
harry.salary = 1200000...( thode or laga lete hain) 🤣🤣
👍👍
abhi km h
same yhi dakh ky comment krny aia tha lol
Km hai mere liye fir bhi koi baat nhi chla lenge Ghar 😂😂 nice Harry sir. 👍
@@nikhilrawat3959 me @12000 ,gazzab bezzati hai
You are a person that regular or alternate day upload your videos ..You are doing very well..great job bro
16:00 Very Much Detailed Pinpoint and in depth Analysis of Enum by 0 & 1 Test
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.
Yes, you are right..
Your explanation style is really great and your sound always seems familiar.
Thanks for making our path easier.
My name is Shubham
Name common
Personality unique🤣🤣
Yeah bro✌✌✌
Lol even gautham is a common name ;-(
@@gauthampracharya9592 are u guys kidding?
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 :)
rice is there in cout then howcome 99 or the ascii value of car is appearing even it wins
@@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....
RIGHT........
@@ashutoshyadav9382 But the value 'c' was assigned to car , then how come on printing rice we are getting ASCII value of 'c'?
@@thesmartone6601 because the data is saved in same space those 4 bytes are interpreted in different way for union this way it saves space
3:15 ... 🤑 per month aur kaya chaiye
120000000 rest after paying tax😁😁😁😁
very nicely explained all the concepts. love you bro. keep teaching us.
3:14 , 120000000 months jo kam hai mere liye fir bhi kam chala lenge 🤣🤣
Kam isliye hai kionki usme tax bhi bharna prega n....
@@GaneshKumar-qs9kn kitna bhi bharna pade 6 clole milenge na
@@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
@@ankitkushwaha633Toh fir toh haary ko hi lutna padega
@@GaneshKumar-qs9kn 😂😂😂😂😂😂😂😂😂😂😂
Thank you sir for providing such a great lecture. Hat's off you
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
Day-10
completed upto Tutorial-14
Date-12/12/2022
Time-22:32
Topic-Structur_Union_And_Enums
thank you harry bhai
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
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
5:52 Shubham is none other than our legendary "BEAST BOY SHUB"
True😃
I am really learnt from this lecture
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).
Wahi to bola ki overwrite hojati hai uski value😶
A noob code:
#include
using namespace std;
int main ()
{
int i;
int marks[4]= {28,30,35,48};
do{
cout
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.
you understood hindi ? nice
really they asked you array , bubble sorting Fibonacci , swapping . I studied this in school.
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.
Thanks Harry , now I can easily play with structures.. 😇
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
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.
class 11 ,12 ki sumita arora ke questions krlo bhot hai
Codeforces join karlo mast probs hai vaha.
python complete hua?
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❤.
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 ❤️❤️❤️❤️
Inserts *okay*
sir your teaching method is too good .but ,please give easy examples which we can understand or life friendly.
14:30 sir vo error isliye aaya tha cuz you ran a program after selecting some portion
Yes. Dude, You are right.
PER COMPILER TO FILE KO COMMPILE KERTA HAI TEXT KO NAHIN
you are awsome haary bhai
thankyou for c++ i learn daily
Thanks harry bhai
Amazing ...Finally I got this concept
Harry Sir can't we use arrow operators in C++ for initializing just like we did in C??
Great!!!❤️❤️🙏
or ma UNI jata hu BSCS krny kuch pallay ni prta to apka lecture dekhta hu sb smjh a jati ha Love from Pakistan ❤
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 😁😁
Bachpan ke langotiya yaar hai...
Rohan das mere coaching ka topper tha
Abhi IIT kgp mai hai😂
@@bibekray5874 Kia tumlog jante ho... Harry bhai ka Asli nam.....?
@Rajat Nahata sach me ? 😳😳😳
🆂︎🅰︎🅷︎🅸︎ 🅷︎🅰︎🅸︎ 🅼︎🅰︎🅸︎🅽︎🅴︎ 🅱︎🅷︎🅸︎ 🅳︎🅴︎🅺︎🅷︎🅰︎ 🅷︎🅰︎🅸︎🤔🤔🤔🤔🤔🤔
thanks bhaiya I'm shubham jaiswal🙂🙂🙂🙂
Harry sir , your video clear concept and understanding point and helpful video...thank U so much
in the structure variable the total size wont be 9 byte, it will be 12 because of structure padding.
plz explain more
11:50 it wasn't garbage value, it was ASCII code of 'c' bcz rice variable is of integer datatype
No that was char Data type check again
@@taimoorgamerz1560 you should recheck brother, rice is an integer type variable
every video of yours deserves a like.
🙂
This video is very useful :)
Thank you Sir.
@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'.
That 99 is not a garbage value. That is the ASCII value of 'c'.
Harry Bhai app bohat acha Kam kr rahy han ❤
5:51
Harry bhaiya, Mai hu shubham.
😄😄😄
5:56 mai bhi hu shubham , bhaiya aapka dost. thank you for this course.
5:48 Yes it indeed a common name .In my batch there are three Shubham including me.
great work
Thank you sir
Thanks sir.
Your explanation is too good👍
Thank you bhaiya ❤️
Python series me ajj Maine health management ka project comment kiye hai check pls and reply
Thank you!!
Music in end gives me different vibe :)
Thank You!
Thanku
Thank u harry bhai
please bring exercise fast
Mera v naam le liya harry bhai ne dil khush ho gya😂
Thanks Harry Bhaiya
If notes are available then upload in this series
Your notes are very helpful
Check the description
great explanation
Thanks..
Can u tell if we can obtain the whole structure as a table like we get in database?
you covered important topics very fast
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'.
Thanks!
Amazing Bro
asli shubham.... hey! harry bhai milta hu apse chai pr....
thnanks harry bhai this video is very useful
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????
Outstanding bhai harry 🤘✌✌✌
very nicee video sir .
thank you harry bro this video is verry helpfull
11:50 it is nor garbage or random number. If you notice, the 99 is the acci code of 'c'
5:51 Yup its me
UPSC mein puchenge?
@@VishalMaharathy kya???
Thanks sir i love your videos so much
Thanku🙏🙏
I wait this tutoorial
Thanks lot bhaiya
5:50, Subham at your service 😉😊
Thanks sir for free provide lucture c++🙏🙏🙏🙏🙏
Enjoying the tutorial
Harry bhaiya! from where should i practice topic wise practice sets like u gave in java series
thank you sir..... thak you so much .... sir
THANK YOU HARRY BHAI
12:30 ,enum
awesome video... but how to implement these concepts?
thanks harry bro
Great
Thank you sir 😊
5:53 I M Shubham😌🙌
Around 12:00 ,while explaining union, the value of 'c' (99) is not garbange but ANSCII
Thanks I know hindi now apart from c++