Precise, terse, with example. The way you nurtute this channel is much appreciated
@CppNuts6 жыл бұрын
Thanks for such a nice comment!!
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this
@krishnagupta72082 жыл бұрын
@@evolve1431 initializer list
@aditya.ishan276 жыл бұрын
You have a deep knowledge of C++.
@CppNuts6 жыл бұрын
I try my best, thanks for your comment!!
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this
@aditya.ishan273 жыл бұрын
@@evolve1431 this is structural initialization Google this you will know what it is.
@krishnagupta72082 жыл бұрын
@@evolve1431 watch video of initializer list
@iamsiddhantsahu5 жыл бұрын
Your explanation are great, keep making such videos!
@CppNuts5 жыл бұрын
Sure dude, thanks for the comment!
@programmingwithht3 жыл бұрын
Awesome Channel On KZbin It clear my all concept about C++
@CppNuts3 жыл бұрын
Glad you think so!
@AkhileshSingh-y4v Жыл бұрын
Understood. Great work 😄
@AshokKumar-mk1nr5 жыл бұрын
Really very useful your videos.. Great work!!!
@CppNuts5 жыл бұрын
Thanks
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this
@krishnagupta72082 жыл бұрын
@@evolve1431 initializer list
@cid0070074 жыл бұрын
Thanks buddy... I really didn't knew we have constant object also in C++ ... :)
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this
@krishnagupta72082 жыл бұрын
@@evolve1431 initializer list
@ankitahlawat48126 жыл бұрын
Great vaagdu...today i got this new concept
@CppNuts6 жыл бұрын
Glad it helped!!
@yogendragangwar97956 жыл бұрын
Very nice description
@CppNuts6 жыл бұрын
Thanks for appreciation!!
@unknow90756 жыл бұрын
int main() { ::function(7,6); } what is the use of using scope resolution with function call here?
@konstantinrebrov6755 жыл бұрын
:: scope resolution operator without any class or namespace means global scope. It allows you to call a function inside the global scope if there is a function with same name inside a namespace. namespace foo { int function(int a, int b) { return a + b; } // function one } int function(int a, int b) { return a + b; } // function two int main() { ::function(7,6); // calls function one foo::function(7,6); // calls function two } If you have using namespace foo; int main() { ::function(7,6); // calls function one function(7,6); // calls function two } Please try it, compile this code.
@shirishareddy27954 жыл бұрын
void print() const can we explain these prototype .plz
@sureshgoondla1917 Жыл бұрын
can you explain about function overwriting?
@chengjiwei5 жыл бұрын
thanks for the information, but the template function actually allows like print(), and print(), can you explain a bit? thanks
@CppNuts5 жыл бұрын
Good question, but try to understand from another end of the problem, there is no difference when you overload print function with "const int" or just "int", so now there is no point in differentiating print() and print().
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this
@biswaranjan35506 жыл бұрын
Hello Sir,One doubt here what is the difference between( int& val) and (const int& val) .As per my knowledge (const int& val) in this case we cannot change the value of val right?
@CppNuts6 жыл бұрын
Yes correct..
@girishmortha48236 жыл бұрын
Can u suggest some books for such concepts with in the language. I have seen few of your interesting questions in C_FAQ book.
@CppNuts6 жыл бұрын
I have never ever follow any book, they were expensive and i was poor. My knowledge comes from stack over flow, i was following it too much and daily tracking what people ask and i tried to give answer for those questions. This is how i built my knowledge for c++.
@Impulse_Photography5 жыл бұрын
I like the book " Object Oriented Programming in C++" by Robert Lafore. It covers all the beginner -> intermediate level topics.
@Impulse_Photography5 жыл бұрын
What is the difference from const int& color(int& x, int& y) To The Function int& color(int& x, int& y) const (keyword const before function or after function)??
@arpithams5 жыл бұрын
not able to overload print function, its throwing compiler error
@CppNuts5 жыл бұрын
What print function?
@vigneshwarmohanraj14906 жыл бұрын
Dear team, I have a small clarification. I want multiple integers sep by spaces from stdin and store it in vector. Please help me on this /Vignesh
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this
@CppNuts3 жыл бұрын
Google initializer list in cpp, you will get detailed explanation.
@evolve14313 жыл бұрын
@@CppNuts ya tqs now I understand we can intilize like general parameterized constructor also
@girishmortha48236 жыл бұрын
I think U forget to add the same scenario occurs when int or const int is used as return type or may be it was not highlighted.
@CppNuts6 жыл бұрын
I am not able to understand what you are asking? We can not overload on the basis of return types. Please provide some code to clarify.
@revarevanth18006 жыл бұрын
Super sir
@CppNuts6 жыл бұрын
Thanks man!!
@vasireddyganesh4 жыл бұрын
Sir when we write Void print(int &val) What kind of value can val hold For example: Void print(int *val) Here val can take the addresses.... While calling this function we need to call it by passing address of some object as an argument.... Like wise what can &val hold ?
@evolve14313 жыл бұрын
can u please tell me why you wrote like this I cant understand----( :x{x} ) these thing over constructor defination , I couldn't understand why you wrote like this