Your videos are the best I have come across on C++ you take the time to thoroughly explain what is going on and why.
@csexplained46393 жыл бұрын
Glad you found them useful. Please share!
@zacharygammo7269 Жыл бұрын
Amazing video, this finally just made it simpler than I ever though ti was
@csexplained4639 Жыл бұрын
Glad you liked it! Please share.
@Naruto-hb9cg2 жыл бұрын
your explanation is the best , is very clear tnx sir
@csexplained4639 Жыл бұрын
Glad it was helpful
@mocha33102 жыл бұрын
thank you for the help. idk why but this video clicked so well with me.
@csexplained46392 жыл бұрын
Glad it helped.
@michaelatorn83802 жыл бұрын
Amazing tutorial! Most reference pages and tutorials lack the graphics for understanding the underlying memory concepts. Thank you.
@csexplained46392 жыл бұрын
Glad it was helpful!
@srikanth5952 жыл бұрын
Nice video, going up from basic to the intricate parts of the feature.
@csexplained46392 жыл бұрын
Thanks! 👍
@The_Programming-Teacher3 жыл бұрын
your explain is very simple , thank you
@csexplained46393 жыл бұрын
Glad it was helpful!
@slowcoding2 жыл бұрын
Super useful to understand the concept. The diagram is really helpful to grab how the memory is managed. Thank a lot.
@csexplained46392 жыл бұрын
You are welcome
@dodosoni77052 жыл бұрын
Really liked your tutorial as u explained everything briefly that most of the youtube channels lack in👍🏻
@csexplained46392 жыл бұрын
Glad it was helpful!
@csexplained46393 жыл бұрын
If you have any questions, please put them here. I'd be happy to answer them.
@dolevabuhazira13343 жыл бұрын
You are great.
@csexplained46393 жыл бұрын
@@dolevabuhazira1334 Many thanks!
@nmuralimohan43773 жыл бұрын
Very clear explanation!
@csexplained46393 жыл бұрын
Thanks!
@BlockchainBob2 жыл бұрын
great visuals and explanation!
@csexplained46392 жыл бұрын
Glad you liked it!
@zx59392 жыл бұрын
Great explanations! Thank you
@csexplained46392 жыл бұрын
Glad it was helpful!
@creationpower333 Жыл бұрын
Thank you for helping us!
@420thlegioner82 жыл бұрын
Such a detailed explanation, really good job.
@csexplained46392 жыл бұрын
Glad it was helpful!
@dodosoni77052 жыл бұрын
Superb explanation!!! Hats off to u sir 🎩
@csexplained46392 жыл бұрын
Thanks a ton
@yogendragangwar97953 жыл бұрын
A very nice explanation .. :)
@csexplained46393 жыл бұрын
Thanks! Glad you liked it.
@Mohamed_bhr662 жыл бұрын
very helpful, thanks for the effort.
@csexplained46392 жыл бұрын
Glad it was helpful!
@blaisofotso34393 жыл бұрын
Hallo , why do you have to return the dereference this pointer(*this) and how do you get the value in main after you return it? Will be happy if you can provide me with a pictorial explaination as in minute 3:00 in your video
@csexplained46393 жыл бұрын
"We return *this to support operations like a = b = c. b=c evaluates to "b" because of this return statement. If we are just doing something like a = b, the return value is simply not going to be captured. Hope this helps!
@srikanth5952 жыл бұрын
Though this (using references) seems to be a standard way of returning a value efficient ly, how does c++ handles the reference when it is assigned to an object because we are assigning a reference to an object - not to a reference object.
@csexplained46392 жыл бұрын
Sorry, not sure I understand what you mean. Can you please rephrase?
@srikanth5952 жыл бұрын
We are assigning a reference to an object, how does c++ handle this? Normally we assign an object to another object or a reference to another reference,,
@youssefgbb3 жыл бұрын
Thanks a lot, I have a question, why do we use return by reference in the operator =, I know if we are returning with value (a = b) = c does not work (not compiler error,) value of b will assignment in a but value of c does not assignment to a,why does it not work,Can you explain to me in depth what exactly is going on.
@csexplained46393 жыл бұрын
Sure. Since we have parenthesis, whatever is between parentheses will be evaluated first. If you are not returning by reference, then the statement (a=b) will create a copy of b as a return value for (a=b). Let's call the returned copy "temp". Now, the result b is copied into c and the returned value temp = c. Therefore, c is going to be copied into temp, not b. This is not behavior that you want, I believe.
@youssefgbb3 жыл бұрын
@@csexplained4639 thnak you soooooo much sir i understod
@Impromptu213 жыл бұрын
thanq bhava
@heartsonny2 жыл бұрын
Hello sir, I have two questions. Do we have to use "this" inside the operator= function? Can't we omit it and say, size=rhs.size instead? Also in my textbook, the Vector& operator= function is written as : const Vector& operator= . What is the use of const there and why? Thanks for the video by the way. Great explanation :) Best wishes
@csexplained46392 жыл бұрын
Hi Duygu, Omitting the "this" is fine. However, using "this" improves the readability by making it explicit that you are referring to the member variable "size". Returning a const reference is not is not typical. en.cppreference.com/w/cpp/language/copy_assignment Glad the explanation helped. What college do you attend?