Experienced C++ Interview Questions

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2024

ความคิดเห็น • 91

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

  • @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?

  • @Anonymous-mz9un
    @Anonymous-mz9un 3 ปีที่แล้ว +54

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

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว +4

      My pleasure

  • @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!

  • @ish_stm
    @ish_stm 21 วันที่ผ่านมา

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

  • @tukaramgaikwad1793
    @tukaramgaikwad1793 3 ปีที่แล้ว +1

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

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      Great 👍

  • @aishwarya8437
    @aishwarya8437 3 ปีที่แล้ว +8

    Omg. The timing.

  • @manojshukla8627
    @manojshukla8627 10 หลายเดือนก่อน

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

  • @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

  • @danielvisan7724
    @danielvisan7724 3 ปีที่แล้ว +5

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

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      I appreciate that!

  • @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 👍

  • @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!

  • @finddhananjay4u
    @finddhananjay4u 3 ปีที่แล้ว +3

    Thanks Rupesh for interview videos

  • @raul825able
    @raul825able 2 ปีที่แล้ว +1

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

  • @antonfernando8409
    @antonfernando8409 3 ปีที่แล้ว +2

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

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว +1

      Thanks man..

  • @j.r.krishna1122
    @j.r.krishna1122 ปีที่แล้ว +2

    You made my day. Appreciate your efforts.

    • @CppNuts
      @CppNuts  ปีที่แล้ว

      Thanks man…

  • @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?

  • @maxymstepura4191
    @maxymstepura4191 ปีที่แล้ว

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

  • @sagarlingayat3999
    @sagarlingayat3999 3 ปีที่แล้ว +3

    Thanks a lot for ur hardwork man💓

  • @gani84
    @gani84 ปีที่แล้ว

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

    • @CppNuts
      @CppNuts  ปีที่แล้ว

      Thanks

  • @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 ?

  • @singarajusreedhar
    @singarajusreedhar 3 ปีที่แล้ว

    Brilliant Explanations!!! Thanks a lot

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      Glad you liked it!

  • @yys5919
    @yys5919 ปีที่แล้ว

    This is insanely helpful. Thank you!

  • @ruijieliu4306
    @ruijieliu4306 ปีที่แล้ว +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 ปีที่แล้ว

      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 4 หลายเดือนก่อน

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

  • @rupamkumari3252
    @rupamkumari3252 3 ปีที่แล้ว

    Excellent material on cpp topics.

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      Thanks

  • @65XEpl
    @65XEpl ปีที่แล้ว +2

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

  • @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

  • @anonimowelwiatko9811
    @anonimowelwiatko9811 ปีที่แล้ว

    Interesting concepts and knowledge. Thanks for sharing.

    • @CppNuts
      @CppNuts  ปีที่แล้ว

      Glad it helped!!

  • @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;

  • @ravindrav1450
    @ravindrav1450 3 ปีที่แล้ว +1

    Thanks a lot for your effort

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      It's my pleasure

  • @pranavpurankar
    @pranavpurankar 2 ปีที่แล้ว

    Insightful
    Thank you so much!

    • @CppNuts
      @CppNuts  2 ปีที่แล้ว

      Welcome

  • @shubhamagarwal2998
    @shubhamagarwal2998 3 ปีที่แล้ว +2

    u are awesome ... keep making

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว +1

      Thank you, I will

  • @KaramAbuGhalieh
    @KaramAbuGhalieh 2 ปีที่แล้ว

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

  • @smilemania5102
    @smilemania5102 3 ปีที่แล้ว +1

    Tq sir

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      Welcome

    • @smilemania5102
      @smilemania5102 3 ปีที่แล้ว

      @@CppNuts Can I get pdf sir please

  • @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?

  • @arghachakraborty7088
    @arghachakraborty7088 2 ปีที่แล้ว

    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.

  • @IndrajeetDevre
    @IndrajeetDevre ปีที่แล้ว

    great job man, thanks

  • @raghavendrat4915
    @raghavendrat4915 3 ปีที่แล้ว

    Thanks for making this video

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      It's my pleasure

  • @georgeabraham4285
    @georgeabraham4285 2 ปีที่แล้ว

    Much love!!

    • @CppNuts
      @CppNuts  2 ปีที่แล้ว

      Thanks

  • @Durgasivakumaran
    @Durgasivakumaran 3 ปีที่แล้ว

    Grt sir... Thanks a lot...

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      Welcome..

  • @looploop6612
    @looploop6612 ปีที่แล้ว

    wow there are a lot of rules in c++

  • @CSe_IT_Guy
    @CSe_IT_Guy 3 ปีที่แล้ว +2

    Thanks😭

    • @CppNuts
      @CppNuts  3 ปีที่แล้ว

      😂

  • @rickzhi5498
    @rickzhi5498 ปีที่แล้ว

    Thank you very much

  • @abhishekrai4677
    @abhishekrai4677 3 ปีที่แล้ว

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

  • @manibatta517
    @manibatta517 ปีที่แล้ว

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

  • @vinamrajha1571
    @vinamrajha1571 4 หลายเดือนก่อน

    should have given more info about tuples..

  • @kajanthansureshkumar
    @kajanthansureshkumar 9 หลายเดือนก่อน

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

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

  • @ReNaq313
    @ReNaq313 9 หลายเดือนก่อน

    15:30

  • @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

  • @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