1. Padding is introduced in memory allocation to ensure proper alignment of data within structures. CPUs have specific memory alignment requirements for different types of data. When you have a structure containing different data types, the compiler might insert "padding bytes" between members to align them according to the CPU's requirements. 2. Greedy alignment refers to the practice of arranging the members of a structure or class in such a way that padding is minimized. By placing members with larger alignment requirements before those with smaller alignment requirements, you can potentially reduce the amount of padding required. In languages like C++, where memory layout has a significant impact on performance due to cache lines and memory access patterns, arranging members to minimize padding can lead to better memory utilization and potentially improved runtime efficiency.
@mridulsehgal678311 ай бұрын
thank you very much 👍👍
@trendingtube64337 ай бұрын
Shukriya janab Love from Pakistan 🇵🇰
@RajNamdev_195 ай бұрын
Thanks bhai
@parasmanku75363 ай бұрын
Thanks brother 👍
@aryan50352 жыл бұрын
Worth watching for 1.5 hr. Understood Everything. Great 👍. Keep it up.
@sakshamsharma2952 жыл бұрын
After 3 months my placement are coming and this course is very helpful in reversing the concepts and making me more confident In coding . I will recommend this channel to my juniors for learning dsa at an excellent level. Thankyou sir for making this course
@vishaldas5692 Жыл бұрын
Mine tooo
@111rhishishranjan2 Жыл бұрын
You are too late man.These lectures are just basic
@higgsboson6274 Жыл бұрын
@@111rhishishranjan2 dont demotivate others, anything can happen with hardwork
@helloworld2054 Жыл бұрын
Engineering will always be better
@anshulkumar7871 Жыл бұрын
@@111rhishishranjan2 Lol. People crack job interviews without learning OOPS also, while you are saying this in not enough.
@suyashpurwar631 Жыл бұрын
It took me a day to complete this. There were so many things to tinker with. I solidified what I learned here. Did quite a lot of experiments. SHAKTIMAN++
@ansh2647 Жыл бұрын
bhai toh lagataar ek baar mai dekha kyuki merko pura din laga notes banana smjhna?
@eagerwolverine39192 жыл бұрын
And here comes the video that we were waiting for since last couple of days ...!! 😅😁🙌🥳
@Relaxingmusic-nk7py2 жыл бұрын
Where is the complete notes bro? Please reply🙏🙏🙏
@chinmaydubey072 жыл бұрын
man as you said earlier this series is absolutely top-notch and the best.
@AnjaliSharma-vp9xu2 жыл бұрын
Just revising all topic in better way through these videos💯
@kamalkishorkumar4278 Жыл бұрын
Sir, you are great. You've taught OOPS in such a way that, no one has ever taught me. Superb teaching method...
@sagarthapliyal828 Жыл бұрын
Bhai suno tumse kuch puchna tha??
@KundanKumar-bt1rn2 жыл бұрын
Never compromised with content, does't matter how much time needed.. Great work bhaiya :)
@HeyyRomii9 ай бұрын
"Grid Alignment" refers to arranging data members according to the system's memory boundaries, and "Padding" involves adding extra bytes to achieve proper alignment of data members within classes or structures in Object-Oriented Programming.
@sahilchalke62457 ай бұрын
That concept of padding and greedy alignment was so cool . I'm watching this lecture after college and I was a little dizzy , but after that I'm ready to go for another hour .
@vedantkesarwani40062 жыл бұрын
i have never watched an educational video so long in one go .This felt like a movie which not let you leave your seat .. So good and kept up hold to study for long hour::
@MohanSingh-rj3td2 жыл бұрын
you are amazing person with clear cut knowledge and style of course is superb. serving Nobel cause of education for all. respect for you 🏅🥇
@mohanrajawat6508Ай бұрын
really great
@jubintalukdar60192 жыл бұрын
Very understanding videos.... Examples are real life thing.... Anybody can understand your video bhaiya💗❤️
@tanmayghosh83112 жыл бұрын
1:01:00 solution :- #include "include this library" to your program
@BBCNFUSION001 Жыл бұрын
You are the gift to programmers sir many many thanks to you.. May Allah keep you happy and healthy ,wealthy(Ameeen)... Sir Your teaching way is just Amazing. I have No words for your teaching..
@kirtiverma49242 жыл бұрын
Bhaiya you made me fall in love with your series🤩!!! watched 10 videos in a single row.....just love the way you teach in a simplified way.
@Raj-jz4fc2 жыл бұрын
PIRO COMDER SPOTTED
@nareshvasuja35062 жыл бұрын
Ek hi poori nahi ho pati, yaha 10 in a row... Kaise kar lete ho bhai/behen ?
@kirtiverma49242 жыл бұрын
@@nareshvasuja3506 uss din hi dekh pai thi fir bimar hogyi😂....ab thoda ye task mushkil lag raha h
@nareshvasuja35062 жыл бұрын
@@kirtiverma4924 😅😂😂
@111rhishishranjan2 Жыл бұрын
@@kirtiverma4924 Iss video ko samajne mai merai ko 2 din lag gye pura keetai krrtai 🥲🥲🥲🥲🥲
@mahavirsingh57902 жыл бұрын
really love the consistency os+ds on track thank you so much
@chandradithyak.g4602 жыл бұрын
U can use ctrl + '/' to comment multiple lines and ctrl + 'L' to clear the terminal bhaiya. Loving your course.
@SumitKumar-vs7ib2 жыл бұрын
Code with Harry se sikhe ho kya bhai 😀
@daiict22822 жыл бұрын
Never seen oops concept like this you explained every concept deep
@raj_laxmi60432 жыл бұрын
Most awaited session from last couple of days Bhaiya...... Awesome lectures .... All d best bhaiya,🤗🤗🤗
@YashSharm8842 жыл бұрын
YES he is great one, DIDI
@TheHariPutraOfficially2 жыл бұрын
Friend function sikhaya hai kya live Babbar bro me
@sanchiagarwal4909 Жыл бұрын
Maza aa gaya..bohot kuch sikha aur samjha.. badhiya content. Respect and Efforts++ 🔥✅🙌🏻
@shivanshsrivastava45122 жыл бұрын
Unbelievable teaching experience such a nice teaching way 😃😊
@ariondas7415 Жыл бұрын
The best thing about your courses is their 'simplicity'... that is what Indians want now... so your courses stand out !!
@godzilla511111 ай бұрын
Homework Solutions - 01:16:47 1. **`const` Keyword**: The `const` keyword in C++ signifies that something cannot be modified. When applied to variables, it means the variable's value can't be changed. For pointers, it can mean that the pointer can't change what it points to or that the data it points to can't be changed, depending on its placement. ```cpp const int x = 10; // x cannot be modified ``` 2. **Using `const` in Object Creation and Member Data**: - **Object Creation**: When you declare an object as `const`, it means you can't modify any of its data members (unless they are declared as `mutable`). ```cpp const MyClass obj; // obj's members cannot be modified ``` - **Member Data Types**: When a class data member is declared as `const`, it means that member cannot be modified after the object is constructed. ```cpp class MyClass { private: const int x; // x must be initialized in the constructor and cannot be modified afterwards }; ``` 3. **`const` Functions**: A member function that is declared `const` promises not to modify any non-mutable member variables of the object for which it's called. This allows you to call the function on a `const` object. ```cpp class MyClass { public: int value = 0; int getValue() const { // A const member function return value; } void setValue(int v) { // Non-const member function value = v; } }; const MyClass obj; int x = obj.getValue(); // OK to call // obj.setValue(5); // Error, because setValue is not a const function ``` 4. **Initialization List**: Initialization lists are used in C++ to directly initialize data members of a class. They are particularly useful for initializing `const` members, member objects without a default constructor, and reference members. ```cpp class MyClass { private: const int x; int &y; // Reference to an integer public: MyClass(int value, int &ref) : x(value), y(ref) { // x and y are initialized using an initialization list } }; int main() { int externalInt = 5; MyClass obj(10, externalInt); } ``` In the above `MyClass`, the `x` member is a `const` integer and must be initialized using an initialization list in the constructor. The `y` member is a reference and also must be initialized using the initialization list.
@abhishekraibagi823910 ай бұрын
thank you so much..
@Pwcouponpro10 ай бұрын
Chatgpt
@amarjitrohit88195 ай бұрын
bro which IDE he is using
@harshi52654 ай бұрын
@@amarjitrohit8819 Visual Studio Code
@007_roushankumar72 жыл бұрын
watched this video 2 times and now i feel lot of comfidence when someone talks about OOPs 😃😃
@sherebanoburhani89392 жыл бұрын
Keep the pace high!! As we are getting back to online classes I can give maximum time to this. Present bhaiya Lots of love❤
@KajalSingh-if4uu2 жыл бұрын
which sem?
@sherebanoburhani89392 жыл бұрын
@@KajalSingh-if4uu 1st semester
@only_for_fun1234r2 жыл бұрын
@@sherebanoburhani8939 bhai life enjoy kro 1st sem se kn pdta h
@sanatandharmyogicculture7002 жыл бұрын
@@only_for_fun1234r hehe
@rameshmalhotra95252 жыл бұрын
kzbin.info/www/bejne/h4XEmnlug5ucabs
@Me123-m4k2 жыл бұрын
usually i don't comment on any video.. but this time can't stop my finger....thank you thank you so much sir ... for making my concepts clear and giving me confidence...... :)........
@gitanksagar13232 жыл бұрын
aapne paul ka hoa yaaad dualaya bhot achha lga sunke... thats why i love your content sir... its not just plain studying.. you relate everything.. nothing seems boring and hours and hours go away without even noticing..... god bless you siir !!!!!!
@satyamsoni10047 ай бұрын
brooooo you are just awesome .....your teaching is too good i am able to understand everything thankuuuuu... today is 5/02/2024 currently studying it for SEM 3rd exams but after my exams i will learn c++ then will do DSA from you .......i promise to be serious about my future
@kamransajjad8798 Жыл бұрын
I really love this series ♥️ thanks sir You are really a leagend 👍🏻
@devangmathur58092 жыл бұрын
Simply Wow! Get to learn some new concepts in addition to what i have learned.
@rishirajtandon38492 жыл бұрын
Thanks, please keep releasing DS video daily without break 🙏
@maheshchoudhary56052 жыл бұрын
Much awaited video aa gayi hai, bcoz ab tak sirf theory padh rahe the but is bar interview me kaise pucha jata hai, uske according padhne wale hai. So excited for this.
@MdRizwan-uu9dv2 жыл бұрын
Padding is used to prevent the unnecessary wastage of CPU cycle by creating empty block in memory. But Greedy alignment ka koi refrence nahi mil raha hai bhaiya.
@ayushgoel41452 жыл бұрын
Also called as Data Structure Alignment, just search its available on GFG.
@akshaysinghbhadoriya79672 жыл бұрын
greedy alignment mtlb ki data type ko particular way me alighn krna taaki vo minium processing cycle me jyada data types ko fetch aur process kr paye
@nik78672 жыл бұрын
It’s on javatpoint
@abhiramgottiparthi936624 күн бұрын
The depth of the conceptsis just amzing
@rohan17652 жыл бұрын
Going to see it tomorrow but thank you so much for the consistency brother, god bless you.
@ganeshninale71222 жыл бұрын
I really want to thank you for making combined play list for cpp and dsa thank you so much really appreciated once again thank you
@srinathsilla58002 жыл бұрын
Finished watching the entire video. The content was awesome. Keep rocking!!
@fahadraza7152 Жыл бұрын
All things are clear and concise....Thanks Babbar Bhaiya
@professorhun30472 жыл бұрын
Your method of teaching is outstanding sir you deserve millions likes and subscriber👀🔥
@ishu.94852 жыл бұрын
Awesome, congrats bhaiya❤️🎉 ‼️One complain from you bhaiya, You don't accept linkedIn request!👀 How would we ask for referral from you if you don't accept?😔 You said in previous live that you would reffer us, in future!🤩
@sagarpokhriyal69262 жыл бұрын
Finally! Oops concept is here. Op consistency 😎
@Sproutmusicy7 ай бұрын
Paul's supperpunch,jin kazama everything was just ❤
@anuragpandey81652 жыл бұрын
With these kind of videos no one can stop getting me placed in top MNC's.
@vinayaksharma71342 жыл бұрын
thankyou
@shubhamsood5892 жыл бұрын
Hello sir Just a small suggestion. Can you also share the resources which you follow to prepare for videos, so that we can also deep dive into the topic apart from watching video.
@SmartVideoCreation977 Жыл бұрын
vs code u will get in google
@ashutoshrawat6583 Жыл бұрын
Best"est" Lecture on OOPs by far bhaiya!Hats off👏
@namanshah26882 жыл бұрын
bhaiya your oops series is one of the best on you tube bty sir aapne videos ni dale kuch dino se ?... just asking.
@mr.writer290310 ай бұрын
litterly i saw this 3 times for more and more better understanding
@arncs55872 жыл бұрын
Finally I got this topic. I am waiting for this topic since last couple of days.....🙏 Thank u bro.....🙏🙏🙏😂😂🥳🥳
@only_for_fun1234r2 жыл бұрын
Learn new concept after watching 3 4 videos from other ytubers ,u r great sir
@RohitRana-tz2lr2 жыл бұрын
Thanks bhaiya for teaching OOP's concept in so much depth and details... there are so many things which are new to me and I have understood them.... joshHigh++
@interviewrecordings2 жыл бұрын
kzbin.info/www/bejne/pZi4paWnedKcp9U Azure and Azure DevOps interview with #wipro and #microsoft especially for Midlevel and Beginners
@aniketmukhopadhyay22719 ай бұрын
Bro , is this two videos are enough for semester exam?
@kanaklata34218 ай бұрын
@@aniketmukhopadhyay2271 yes they are enough but make sure to practice a lot and clear your doubts while practicing at that time only by yourself and you are good to go not only for exams but for anything
@priyabharti2818 Жыл бұрын
This is the best explanation of oops concept..!! Startingly i got rejected in technical rounds because i don't know much about oops..!! When i completed these two videos of oops then i'm getting qualified in technical and getting rejected in hr rounds.. double oops...!!😂..!! Finally i made it..!! And got selected..!! Thank you so much...!! Your whole series of this DSA concept is awesome..and this oops is just fab...!!!
@adityaraj04 Жыл бұрын
Where did you get the job? Did you just watched only this playlist?
@amaan1180 Жыл бұрын
Where did you get placed.... Did you follow just this playlist or something extra too @priyabharti2818
@BabaJaniSarkar877 Жыл бұрын
Padding meaning in Urdu " Bahrti - karna " matlab ka add karna char ' A '; ' A ' ki value hexa-decimal ma 10 hoti ha A = 10; 10 ko binary ma convert karana ka liya hama 2 ka sath LCM lana ho ga A = 10 = (1010) or is ki base 2 sa multiply karan ga In Right-side-start 0 = 2 ^ 0 = 1 1 = 2 ^ 1 = 2 0 = 2 ^ 2 = 4 1 = 2 ^ 4 = 8 so 1byte = 8 bits = 4 parts ( 1, 2 , 4 , 8 ) So A will be store in 1 and 2 , 4 , 8 is empty so In case off padding its also be store or add empty values
@sheetaltomar91152 жыл бұрын
you are such an amazing teacher.!!
@amanasrani640527 күн бұрын
29:09 it seems like some important message had been seen by sir🌻
@tanayvekariya12682 жыл бұрын
Thank you, sir, for such awesome lectures, it really helps a lot in the time of need...
@darshgupta1021 Жыл бұрын
these 2 videos got me a 14lpa job!!
@studyplus7144 Жыл бұрын
Congratulation
@studyplus7144 Жыл бұрын
Kya aapne dsa love bhaiya se hi kiya tha
@darshgupta1021 Жыл бұрын
yes bro @@studyplus7144
@ojio2462 Жыл бұрын
@@darshgupta1021sir could you share your insta handle
@gaonkaladka2373 Жыл бұрын
Meanwhile Ramesh ,"Abe yaar main itna famous hogya" 😂🤣😂😂
@cousinsvlogs391210 ай бұрын
😂😂
@muntahaatif58289 ай бұрын
Thank you sir apk is lec say mera oop ka paper acha hogea, pehli bar mujay oop programming sai say smaj ai hai ❤🎉🎉
@dikshachaubey34525 ай бұрын
Meri kal exams hai aur Mai Aaj lecture dekh Raha hu 😅😢😅
@user-os2jb2hq5f4 ай бұрын
Meri be kal exams hain 😅😅
@adityaraj_794 ай бұрын
@@user-os2jb2hq5fkaisa gya exam tumhara
@saishthorat34314 ай бұрын
Meri abhi 2 ghante mein hain.😅
@Noobcod3r4 ай бұрын
😂us
@unknown-hg5ld4 ай бұрын
Meray 1 gheintay bad
@DeepakKumar-qw7lp2 жыл бұрын
OS ka intro ek number bhaiya ❤️🎉 Osm bhaiya❤️🔥🔥🔥🔥🔥🔥🔥🔥
@43_riteshroy132 жыл бұрын
51.41 gajb bazzati hai
@syedmuneeb37794 ай бұрын
best video for learning oop. i have seen many channels but this one is flawless.
@therealartist98 ай бұрын
wasted 1 hour and not learnt something , sorry bhaiya but constructor is something complicated and pls tell the need before explaining it
@tousifjaved34856 ай бұрын
Constructor is used to initialize object without using external methods He has explained everything very nicely
@Sppuuuuuuyy46676 ай бұрын
Bhai kaunse channel par badhiya se sikhaya hai constructor?? Pls batana agar pata hai toh
Finally understood the actual meaning of (this pointer) after so many years!!!
@parthsati7359 Жыл бұрын
Brother, I really felt this was not well explained by you! Maybe I'm wrong because so many here are praising you , but I gave my best to this lecture and think it's so so so confusing!
@udaypratapsingh89232 жыл бұрын
*MORE INTERESTING THEN MOVIES *😅😅😅
@sanjaygatne1424Ай бұрын
int is not always 4 bytes, it depends on platform. it is at least 2 bytes and max 4 byte , as per c++ specification till now.
@314_vaibhavshukla7 Жыл бұрын
broo...love you.
@zeeshan101911 ай бұрын
Finally completed ❤
@vslraw42028 ай бұрын
tekken and paul phoenix reference🥲brings back old memories .
@harshitkumar-13258 ай бұрын
Ye series ka notes kaha hai bata do please
@vslraw42025 ай бұрын
@@harshitkumar-1325 bhai video k description m rehta hai notes link aur code link
@TrendyGamer0072 жыл бұрын
tekken 3 paul was my favourite character in tekken .
@hare_krishana_108 Жыл бұрын
Thank a lot ❤❤
@suyashverma1562 жыл бұрын
watched till end! kaffi lamba tha but worth it tha time invest krna isme
@manishrawat37912 жыл бұрын
Bhaiya sahi chl rhe hai bss ese he m aur mere sath k babbar class k mates agle 6 month m ya 1 year koi achi job fod dengey and sach bolu toh app he sabsi motivation ho reason btane ki jaruart nh but fir bh bta deta hu continues classes till today esa koi nh krta aur nahi ab tk mene koi dekha hai thankyou from one of your student!! vase job k baad apke channel m interview toh logey na mera........?? till that day let's learn something new today too.......
@dakshchandore6435 Жыл бұрын
best teacher on youtube for coding
@NishantSharmaddn2 жыл бұрын
Padding vala bahut sahi bataya...kabhi kisi ne YT me nahi bataya.
@abhinavjha28962 жыл бұрын
bhaiya aapko na isse 2 part mein padhana chayea tha ek saath access modifier constructor sb bta diye to the point bolu to muze constructor samaz nhi aaya ab dubara dekhunga but aage se 40-45 min ka hi video bnana
@anmolsaxena458 ай бұрын
Padding is the addition of some empty bytes of memory in the structure to naturally align the data members in the memory.
@umangsharma9993 Жыл бұрын
Boht badhiya ,Boht badhiya.
@iteself_me Жыл бұрын
love you bhaiya❤
@jalesasanty96972 жыл бұрын
Is video ko dekh ke logo ki placement lagi hai bhaiya Dil se respect++
@IshikaAgrawalISE--2 жыл бұрын
very informative lecture, thank you bhaiya!
@I_Anupam_Pandey2 жыл бұрын
Lecture 42 attendance bhaiya keep going with this amazing dsa series
@muzammilkhan4036 ай бұрын
I have learned oops in python and this lecture cleared my concept about oops in c++. Im starting DSA in c++
@mrtechnostart8 ай бұрын
ramesh hero nhi gunda hai 🙂🙂
@bhawargujral35742 жыл бұрын
Great explanation of OOPS.🤩🤩🤩🤩🤩🤩 Keep up the good work
@aarav-anish2 жыл бұрын
Timestamp- 9:15 Please talk about structural padding and packing sizeof will not give 5 if class contains an int followed by a char or vice versa This video is very helpful. Thanks Babbar
@bhavnaparvataneni8722 Жыл бұрын
best tutor online, bhaiyya saare doubts in depth clear hogaye!
@lakshayanarangbtech40642 жыл бұрын
Thank you so much bhaiya apka channel crores m views paae aur hindustan k Engineer to skills pradan kre
@saurabhmalviya1002 жыл бұрын
Maza aa gaya bhaiyaaa we will keep our josh high ❤️❤️
@rookie2048 Жыл бұрын
very good content must watch
@yashwantmishra91092 жыл бұрын
jiska thaa, saalo se intezar wo video aa gayi aa gayi ...... 😀😀
@pawankumarpandit1822 Жыл бұрын
love you love bhaiya
@063himanshumishra42 жыл бұрын
Finally return of 1 hour video... Really missing these videos..
@yash_verma Жыл бұрын
Good structure & examples
@JustwaitNwatch-w2 жыл бұрын
Greedy align and padding i searched myself and got to know that Our operationg system is of 32/64 bits And if our OS is 64 bits it means that the compiler will read 8 bytes at a time if OS of 32 bits compiler will read 4 bytes at a time Here as we have one int and one char which mskes up 5 bytes the rest 3 bytes will be added as padding so that compiler can read 8 bytes easily ... This also leads to memory wastage ... This is what i got to know after searching .... Please correct me if i sm wrong
@thetradingtarzan2 жыл бұрын
bhaiya... bhaiya phle majburi m shuru kiya tha lekin ab mja aane lga h