CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2000
    Location
    Indianapolis
    Posts
    6,754

    Question C++ Interview Questions

    We are looking to create a few new articles on one of our sites. One of the articles is "Top Interview Questions for the {C++} Developer." We'll likely do this for Java, VB, C#, and other areas as well.

    So my question to you is.... What is one (or more) of the Interview questions you got when applying (or hiring) for a C++ position? Post it here in this thread!

    Thanks!
    Brad!
    (I'm going to create a similar thread for other languages on this forum as well. It will be interesting as well to see how responses might differ!)
    -----------------------------------------------
    Brad! Jones,
    Yowza Publishing
    LotsOfSoftware, LLC

    -----------------------------------------------

  2. #2
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Interview Questions

    If you have a class derived from a base class, and each has a constructor and a destructor, what is the order that the constructors are called in when an object of the derived type is created? When the object is destroyed what is the order that the destructors are called in?

    What is the purpose of a virtual destructor?
    Last edited by ahoodin; February 29th, 2016 at 08:00 AM.
    ahoodin
    To keep the plot moving, that's why.

  3. #3
    Join Date
    Jan 2009
    Posts
    399

    Re: C++ Interview Questions

    I saw here something interesting:
    http://guitarcplusplus.blogspot.ro/2...estions-c.html

  4. #4
    Join Date
    Sep 2000
    Location
    Indianapolis
    Posts
    6,754

    Re: C++ Interview Questions

    Quote Originally Posted by mesajflaviu View Post
    That's not quite in English...

  5. #5
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Interview Questions

    Quote Originally Posted by Brad Jones View Post
    That's not quite in English...
    bing translate makes a bit more sense out of it here:
    http://www.microsofttranslator.com/b...estions-c.html
    ahoodin
    To keep the plot moving, that's why.

  6. #6
    Join Date
    Jun 2015
    Posts
    208

    Re: C++ Interview Questions

    Quote Originally Posted by Brad Jones View Post
    One of the articles is "Top Interview Questions for the {C++} Developer."
    Well, be aware that lots of information already exists on this topic. Not only are there books but also comparisons of books, like here for example,

    http://www.amazon.com/review/R288W3X...55&store=books
    Last edited by tiliavirga; March 4th, 2016 at 11:54 AM.

  7. #7
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,824

    Re: C++ Interview Questions

    but of course interviewers don't also read these books - do they?

    Personally, I prefer more 'open ended' discussion type questions - such as 'What is a race condition?', 'Describe Polymorphism', When would you not use the STL sort functions' etc. Rather than specific c++ syntax questions.
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  8. #8
    Join Date
    Mar 2001
    Posts
    2,529

    Re: C++ Interview Questions

    Brads question is what are specific questions you have been asked in an interview.
    Quote Originally Posted by Brad Jones View Post
    So my question to you is.... What is one (or more) of the Interview questions you got when applying (or hiring) for a C++ position? Post it here in this thread!
    ahoodin
    To keep the plot moving, that's why.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured