THIS was truly awesome! It took me a few days to watch it, even on x2 speed, to be able to grasp the ideas. Thanks a lot! Please continue with more hours-long compilations like this.
I was looking for a long time a content like this..so much in the net for freshers and not for experienced to brush up cpp skills..and here we go !! Kudos dude..thanks a lot 🙏🙏🙏
Just at 4:36, man lengthy, did the coding parts as well, very helpful, got me off to a great refresher on c++, definitely worth a try, if you have the time. Thanks.
@cppnuts 39.13 --> what you are printing is &p, hence the address is different here, you should be printing 'p'--> which is holding the address of variable 'i', then all three , &i, &r and 'p' will be printing same. correct me if my understanding is right here
It's a great video! I found something weird at 28:41. "Instead of 10, a1 is actually holding 10, not 15". Should the memory hold 15, so when we print *d1, it prints 15?
a1 has different memory , when 15 got assigned *d1, compiler actually assigned address of 15 to *d1 and a1 still has original address. It just changed the address of pointer with &15.
Thanks a million @CppNuts. 0_12.30 friend function or class I just watched friend function tutorial 1. What is friend functions or class 2. What are the scenarios we need friend functions/class 3.How friend functions/class will not break the c++ encapsulation. Class decides who want to be it's friend.so class has the full control. 4.to access all members of a class into another class or function, we declare the function as friend. Then,we access the private members inside that class 5.in a hierarchy of inheritance, A->B->C->D->E , assum class C uses friend function display1. So what are the members variables can be accessed by display1. 3.suppose there is a class which does not have a set/get function,but we want to access the function for unittesting . Here I need the friend to access the private variable 4. In a scenario where classes A , B, C, D, E, F can use the same friend function as the interface. - if there is any example for this, that would be 👍
I spent one day to watch ,understand and write down points ,and took screen shots as well.thanks for bringing all them at one place ..But it would have helpful if we have pdf kind on notes for this whole content ..
Inside delegate constructor, other constructor is called directly.. Will it call destructor also immediately... As u said, constructors should not be called stand alone..if my qes is wrong, pls ignore
It's reference. Reference is object's place in memory. There is no reference incrementing. You can increment value of object held by reference though, if it has function like this.
In const example, you are saying your integer pointer b1 is constant but it is not, I am not sure why you are using const cast for b1 because data it is pointing to is const and not pointer itself. Your syntax to make const pointer is incorrect. It should be int * const b1 = &a1;
something about that "malloc calls kernel" - it is not true... When user space applications call malloc(), that call isn't implemented in the kernel. Instead, it's a library call (implemented glibc or similar). The short version is that the malloc implementation in glibc either obtains memory from the brk()/sbrk() system call or anonymous memory via mmap(). This gives glibc a big contiguous (regarding virtual memory addresses) chunk of memory, which the malloc implementation further slices and dices in smaller chunks and hands out to your application.
Presenting the material for an experienced C++ developer, you have completely ignored compile time tricks such as CRTP, SFINAE and lots of other tricks from meta-programming. For example, when checking whether the objects are the same you could do that by implementing templates with specializations. Alternatively, you could simply use the existing solution from type_traits: cout
For the question: What are those places where initializer list is a must in C++ I think the correct answer would be: "A. If the class needs to call the parent class constructor B. If the class variables aren't in-class initialized and they are: -1. const -2. references -3. class objects without default constructor"
I keep telling myself there are still many things need to be learn in c++, But 6 hours is too much for me.. (because too sleepy) Maybe i ll come back again.. Because the explaination is beginner-friendly and is quite understandable.. Btw i have started a new project using c++ in visual studio.. I think i have a weird class.. Bcoz i want to initialize my constructor with some parameters, so that when i am creating object, i just want to type what data i want instead of using ' . ' operator or ' -> '. Because my data is inside an array of string. So if want to access one element i need to specify the indexes which i dont want to do. Instead what i do, is i declare another array which is part of the initial array as a variable that i want to compare to. For example, #include #include using namespace std; class ChooseFile { ChooseFile(){}; ChooseFile(string fileName){}; private: string fileNamePath[2]={ "C:\\whoever\\whoever\\desktop\\penjara.txt", "C:\\whoever\\whoever\\desktop\\hantu.pdf" }; string FileName[2]={"penjara.txt", "hantu.pdf"}; char penjara[12]; char hantu[10]; public: void compareName() { char* twentySeven=&fileNamePath[27]; for(int i=0;i
Appreciate your work brother. You are giving golden content for free. Thank you so much.
My pleasure
THIS was truly awesome! It took me a few days to watch it, even on x2 speed, to be able to grasp the ideas. Thanks a lot! Please continue with more hours-long compilations like this.
Sure I will do.
How are you doing? Did you land a C++ job using this video?
I was looking for a long time a content like this..so much in the net for freshers and not for experienced to brush up cpp skills..and here we go !! Kudos dude..thanks a lot 🙏🙏🙏
Glad to hear that..
I want to like this 10 times…
Great job and great content. I know I will pass my interviews with this :)
really appreciate your work bro. It's no more than a gem.
Thanks a lot for making content like this.
Just at 4:36, man lengthy, did the coding parts as well, very helpful, got me off to a great refresher on c++, definitely worth a try, if you have the time. Thanks.
Very Nice! Well presented. Hope one will fall in love learning C++ after watching these kind of videos. Awesome ❤👏
I pay respect for this material. Great job🙂
Glad you enjoyed it!
You made my day. Appreciate your efforts.
Thanks man…
Wow!!! Really appreciate the interesting questions that you have here.
Thanks Rupesh for interview videos
I respect you, your work has considerable value👍👏👏👏
I appreciate that!
Thanks a lot for ur hardwork man💓
Omg. The timing.
@cppnuts 39.13 --> what you are printing is &p, hence the address is different here, you should be printing 'p'--> which is holding the address of variable 'i', then all three , &i, &r and 'p' will be printing same. correct me if my understanding is right here
This is insanely helpful. Thank you!
Thank you bro
I observed mostly these questions are asked in interview
It cover all c++ theory questions
Great 👍
Hi @CppNuts, at 15:13 you mention about RAII, how is it related to "auto" or anything you're mentioning ? I'm really confused. Can you please help ?
Thanks a lot Rupesh , these questions are very helpful , god bless, cheers.
Thanks
Top notch content so useful and very well explained . you are a gift to a lot of people learning C++. Love your work. Thank you. :)
Much appreciated!
cool, went thru the 6.30 hrs of c++, damn that was very helpful.
Thanks man..
It's a great video! I found something weird at 28:41. "Instead of 10, a1 is actually holding 10, not 15". Should the memory hold 15, so when we print *d1, it prints 15?
a1 has different memory , when 15 got assigned *d1, compiler actually assigned address of 15 to *d1 and a1 still has original address. It just changed the address of pointer with &15.
5:07:50 this->_x=_x; can also be used.
Interesting concepts and knowledge. Thanks for sharing.
Glad it helped!!
The problem is that those questions are NOT for Experienced C++, they are for beginners, regulars maybe.
great job man, thanks
@42:56
error: increment of read-only location ‘& r’
when (&r)++
Thanks a million @CppNuts.
0_12.30 friend function or class
I just watched friend function tutorial
1. What is friend functions or class
2. What are the scenarios we need friend functions/class
3.How friend functions/class will not break the c++ encapsulation. Class decides who want to be it's friend.so class has the full control.
4.to access all members of a class into another class or function, we declare the function as friend. Then,we access the private members inside that class
5.in a hierarchy of inheritance, A->B->C->D->E , assum class C uses friend function display1. So what are the members variables can be accessed by display1.
3.suppose there is a class which does not have a set/get function,but we want to access the function for unittesting . Here I need the friend to access the private variable
4. In a scenario where classes A , B, C, D, E, F can use the same friend function as the interface. - if there is any example for this, that would be 👍
Excellent material on cpp topics.
Thanks
at time 5:06:50 sec, we can use this._x = _x; right
Brilliant Explanations!!! Thanks a lot
Glad you liked it!
Hi bro , Can you upload Socket programming tutorial in C++?
I spent one day to watch ,understand and write down points ,and took screen shots as well.thanks for bringing all them at one place ..But it would have helpful if we have pdf kind on notes for this whole content ..
Now you can convert all you notices to pdf format :) Thank you in advanse!
Hi @Shiva G did you converted into a pdf?
Inside delegate constructor, other constructor is called directly.. Will it call destructor also immediately... As u said, constructors should not be called stand alone..if my qes is wrong, pls ignore
Insightful
Thank you so much!
Welcome
42:45 r++ is valid, its incrementing i by 1. Any problem with that?
It's reference. Reference is object's place in memory. There is no reference incrementing. You can increment value of object held by reference though, if it has function like this.
Awesome video!! A big thumbs up to you Rupesh!
u are awesome ... keep making
Thank you, I will
Much love!!
Thanks
Thanks a lot for your effort
It's my pleasure
Thank you very much
In const example, you are saying your integer pointer b1 is constant but it is not, I am not sure why you are using const cast for b1 because data it is pointing to is const and not pointer itself. Your syntax to make const pointer is incorrect.
It should be
int * const b1 = &a1;
Hi Rupesh or Anyone else, Do you have notes on C++ experienced interview quesn? Basically for more than 5+ years of experience?
No
Thanks for making this video
It's my pleasure
Thanks😭
😂
Sir for typeid(class obj).name() why 4 coming ?
Grt sir... Thanks a lot...
Welcome..
something about that "malloc calls kernel" - it is not true...
When user space applications call malloc(), that call isn't implemented in the kernel. Instead, it's a library call (implemented glibc or similar).
The short version is that the malloc implementation in glibc either obtains memory from the brk()/sbrk() system call or anonymous memory via mmap(). This gives glibc a big contiguous (regarding virtual memory addresses) chunk of memory, which the malloc implementation further slices and dices in smaller chunks and hands out to your application.
should have given more info about tuples..
Tq sir
Welcome
@@CppNuts Can I get pdf sir please
Can I get pdf
I don't have pdf man.
your videos are sufficient for getting into crappy companies like TCS,Infi, Capg etc
If you can't get into FANG directly then go to these crappy once and prepare.
you will have money to feed your stomach.
@@CppNuts there are lot of other companies apart from FANG too smarty pants.
Hey why are you watching this ? Smarty ass
wow there are a lot of rules in c++
15:30
Presenting the material for an experienced C++ developer, you have completely ignored compile time tricks such as CRTP, SFINAE and lots of other tricks from meta-programming. For example, when checking whether the objects are the same you could do that by implementing templates with specializations. Alternatively, you could simply use the existing solution from type_traits:
cout
For the question: What are those places where initializer list is a must in C++
I think the correct answer would be:
"A. If the class needs to call the parent class constructor
B. If the class variables aren't in-class initialized and they are:
-1. const
-2. references
-3. class objects without default constructor"
I keep telling myself there are still many things need to be learn in c++,
But 6 hours is too much for me..
(because too sleepy)
Maybe i ll come back again..
Because the explaination is
beginner-friendly and is quite understandable..
Btw i have started a new project using c++ in visual studio..
I think i have a weird class..
Bcoz i want to initialize my constructor with some parameters,
so that when i am creating object, i just want to type what data i want instead of using ' . ' operator or ' -> '.
Because my data is inside an array of string. So if want to access one element i need to specify the indexes which i dont want to do.
Instead what i do, is i declare another array which is part of the initial array as a variable that i want to compare to. For example,
#include
#include
using namespace std;
class ChooseFile
{
ChooseFile(){};
ChooseFile(string fileName){};
private:
string fileNamePath[2]={
"C:\\whoever\\whoever\\desktop\\penjara.txt",
"C:\\whoever\\whoever\\desktop\\hantu.pdf" };
string FileName[2]={"penjara.txt",
"hantu.pdf"};
char penjara[12];
char hantu[10];
public:
void compareName()
{ char* twentySeven=&fileNamePath[27];
for(int i=0;i