Experienced C++ Interview Questions

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 91

  • @Anonymous-mz9un
    @Anonymous-mz9un 3 роки тому +53

    Appreciate your work brother. You are giving golden content for free. Thank you so much.

  • @annawilson3824
    @annawilson3824 3 роки тому +14

    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.

    • @CppNuts
      @CppNuts  3 роки тому

      Sure I will do.

    • @dmit100
      @dmit100 Рік тому

      How are you doing? Did you land a C++ job using this video?

  • @DAS-jk3mw
    @DAS-jk3mw 2 роки тому +6

    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 🙏🙏🙏

    • @CppNuts
      @CppNuts  2 роки тому +1

      Glad to hear that..

  • @ish_stm
    @ish_stm 2 місяці тому

    I want to like this 10 times…
    Great job and great content. I know I will pass my interviews with this :)

  • @manojshukla8627
    @manojshukla8627 Рік тому

    really appreciate your work bro. It's no more than a gem.
    Thanks a lot for making content like this.

  • @antonfernando8409
    @antonfernando8409 3 роки тому +1

    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.

  • @kamallochanjena4123
    @kamallochanjena4123 3 роки тому +5

    Very Nice! Well presented. Hope one will fall in love learning C++ after watching these kind of videos. Awesome ❤👏

  • @jocker7303
    @jocker7303 3 роки тому +5

    I pay respect for this material. Great job🙂

    • @CppNuts
      @CppNuts  3 роки тому

      Glad you enjoyed it!

  • @j.r.krishna1122
    @j.r.krishna1122 Рік тому +2

    You made my day. Appreciate your efforts.

  • @raul825able
    @raul825able 2 роки тому +1

    Wow!!! Really appreciate the interesting questions that you have here.

  • @finddhananjay4u
    @finddhananjay4u 3 роки тому +3

    Thanks Rupesh for interview videos

  • @danielvisan7724
    @danielvisan7724 3 роки тому +5

    I respect you, your work has considerable value👍👏👏👏

    • @CppNuts
      @CppNuts  3 роки тому

      I appreciate that!

  • @sagarlingayat3999
    @sagarlingayat3999 3 роки тому +3

    Thanks a lot for ur hardwork man💓

  • @aishwarya8437
    @aishwarya8437 3 роки тому +8

    Omg. The timing.

  • @siddeshgv2473
    @siddeshgv2473 2 роки тому

    @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

  • @yys5919
    @yys5919 Рік тому

    This is insanely helpful. Thank you!

  • @tukaramgaikwad1793
    @tukaramgaikwad1793 3 роки тому +1

    Thank you bro
    I observed mostly these questions are asked in interview
    It cover all c++ theory questions

  • @jakesmith6853
    @jakesmith6853 Рік тому

    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 ?

  • @gani84
    @gani84 Рік тому

    Thanks a lot Rupesh , these questions are very helpful , god bless, cheers.

  • @nextlevel7790
    @nextlevel7790 3 роки тому

    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. :)

    • @CppNuts
      @CppNuts  3 роки тому

      Much appreciated!

  • @antonfernando8409
    @antonfernando8409 3 роки тому +2

    cool, went thru the 6.30 hrs of c++, damn that was very helpful.

    • @CppNuts
      @CppNuts  3 роки тому +1

      Thanks man..

  • @ruijieliu4306
    @ruijieliu4306 2 роки тому +2

    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?

    • @swapnilkonde1321
      @swapnilkonde1321 2 роки тому

      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.

  • @vinamrajha1571
    @vinamrajha1571 5 місяців тому

    5:07:50 this->_x=_x; can also be used.

  • @anonimowelwiatko9811
    @anonimowelwiatko9811 Рік тому

    Interesting concepts and knowledge. Thanks for sharing.

  • @65XEpl
    @65XEpl Рік тому +3

    The problem is that those questions are NOT for Experienced C++, they are for beginners, regulars maybe.

  • @IndrajeetDevre
    @IndrajeetDevre Рік тому

    great job man, thanks

  • @KaramAbuGhalieh
    @KaramAbuGhalieh 3 роки тому

    @42:56
    error: increment of read-only location ‘& r’
    when (&r)++

  • @senthilandavanp
    @senthilandavanp 3 роки тому

    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 👍

  • @rupamkumari3252
    @rupamkumari3252 3 роки тому

    Excellent material on cpp topics.

  • @manibatta517
    @manibatta517 Рік тому

    at time 5:06:50 sec, we can use this._x = _x; right

  • @singarajusreedhar
    @singarajusreedhar 3 роки тому

    Brilliant Explanations!!! Thanks a lot

    • @CppNuts
      @CppNuts  3 роки тому

      Glad you liked it!

  • @kajanthansureshkumar
    @kajanthansureshkumar 11 місяців тому +1

    Hi bro , Can you upload Socket programming tutorial in C++?

  • @shivag1709
    @shivag1709 3 роки тому

    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 ..

    • @grigoriyz
      @grigoriyz 3 роки тому +3

      Now you can convert all you notices to pdf format :) Thank you in advanse!

    • @senthilandavanp
      @senthilandavanp 3 роки тому

      Hi @Shiva G did you converted into a pdf?

  • @Durgasivakumaran
    @Durgasivakumaran 3 роки тому

    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

  • @pranavpurankar
    @pranavpurankar 2 роки тому

    Insightful
    Thank you so much!

  • @arghachakraborty7088
    @arghachakraborty7088 3 роки тому

    42:45 r++ is valid, its incrementing i by 1. Any problem with that?

    • @anonimowelwiatko9811
      @anonimowelwiatko9811 Рік тому

      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.

  • @maxymstepura4191
    @maxymstepura4191 2 роки тому

    Awesome video!! A big thumbs up to you Rupesh!

  • @shubhamagarwal2998
    @shubhamagarwal2998 3 роки тому +2

    u are awesome ... keep making

    • @CppNuts
      @CppNuts  3 роки тому +1

      Thank you, I will

  • @georgeabraham4285
    @georgeabraham4285 2 роки тому

    Much love!!

  • @ravindrav1450
    @ravindrav1450 3 роки тому +1

    Thanks a lot for your effort

    • @CppNuts
      @CppNuts  3 роки тому

      It's my pleasure

  • @rickzhi5498
    @rickzhi5498 Рік тому

    Thank you very much

  • @AspiringRider
    @AspiringRider 2 роки тому

    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;

  • @ishantsethi1
    @ishantsethi1 2 роки тому

    Hi Rupesh or Anyone else, Do you have notes on C++ experienced interview quesn? Basically for more than 5+ years of experience?

  • @raghavendrat4915
    @raghavendrat4915 3 роки тому

    Thanks for making this video

    • @CppNuts
      @CppNuts  3 роки тому

      It's my pleasure

  • @CSe_IT_Guy
    @CSe_IT_Guy 3 роки тому +2

    Thanks😭

  • @abhishekrai4677
    @abhishekrai4677 3 роки тому

    Sir for typeid(class obj).name() why 4 coming ?

  • @Durgasivakumaran
    @Durgasivakumaran 3 роки тому

    Grt sir... Thanks a lot...

  • @berlin-unlocked
    @berlin-unlocked 3 роки тому +2

    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.

  • @vinamrajha1571
    @vinamrajha1571 5 місяців тому

    should have given more info about tuples..

  • @smilemania5102
    @smilemania5102 3 роки тому +1

    Tq sir

  • @smilemania5102
    @smilemania5102 3 роки тому

    Can I get pdf

    • @CppNuts
      @CppNuts  3 роки тому

      I don't have pdf man.

  • @PaddlingDuckInc
    @PaddlingDuckInc 3 роки тому

    your videos are sufficient for getting into crappy companies like TCS,Infi, Capg etc

    • @CppNuts
      @CppNuts  3 роки тому +1

      If you can't get into FANG directly then go to these crappy once and prepare.
      you will have money to feed your stomach.

    • @PaddlingDuckInc
      @PaddlingDuckInc 3 роки тому

      @@CppNuts there are lot of other companies apart from FANG too smarty pants.

    • @mr_world_wide
      @mr_world_wide 3 роки тому

      Hey why are you watching this ? Smarty ass

  • @looploop6612
    @looploop6612 Рік тому

    wow there are a lot of rules in c++

  • @ReNaq313
    @ReNaq313 11 місяців тому

    15:30

  • @erithion
    @erithion 3 роки тому +1

    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

  • @pabloarkadiuszkalemba7415
    @pabloarkadiuszkalemba7415 2 роки тому

    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"

  • @footballCartoon91
    @footballCartoon91 2 роки тому

    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