GeekInterview.com
  I am new, Sign me up!
 

C++ Interview Questions


C++ Interview Questions

Questions: 203
Comments: 914
 Showing Questions 41-50 of 203 Questions
<< Previous 1 2 3 4 [5] 6 7 8 9 10 Next >>
 Sponsored Links

 
 C++ Interview Questions
Sorting Options :  

Can Virtual destructor is used in derived classes?What is the answer to the following question?Class Base {Public:Base();Virtual ~Base();};Class Derived : protected Base {Public:Virtual ~Derived();};Int 
Latest Answer: Choice 4 A pointer to a Base class cannot point to an instance of a Derived class. class cannot point to an instance of a Derived class. This the the only truthful answer.  ...
Read Answers (5) | Asked by : vvadan

What Is The Difference Between Object and Instance? 
Latest Answer: No difference,object is nothing but an instance of a class ...

Write a program to concatenate two circular linked lists into a single circular list. 
Latest Answer: class node {public:  node(int n) : m_n(n) { m_pNext = this; }  ~node() {}  void SetNext( node* p ) { m_pNext = p; }  node* GetNext() const { return m_pNext; }  int GetData() const { return m_n; }  static ...

What is the danger of using public unsigned integers within a class?In a diamond-shaped inheritance hierarchy, how to ensure that only 1 copy of parent is created? 
Latest Answer: There are at least 2 questions here. The latter is answered but not the former.If the initial question is answered, there would be a requirement to highlight what the dangers are for both public unsigned and multiple inheritance. ...

what is inheritance? why we use it? plzz can anybody explain me with one example and where we use that concept? 
Latest Answer: The main use of inheritance is to provide reusability of codes .Through inheritance base class objects and functions are acquired by derived class so there is no need to specify it again in derived class ...

What does this function do:string f(const string &x) { return x.empty()? x : f(x.substr(1)) + x[0];}What does this piece of code perform:char *a=...., *b=....;while(*b++ = *a++); 
Latest Answer: Second function is copying 'a' to 'b' provided that 'a' should be a null terminated string. ...

Latest Answer: Don't get confused with the words visual and ANSI. Follow this.* Visual C++ is an IDE for developing GUI real time applications using C++. Visual C++ deals with more complex applications* ANSI C++ is the developed version of C++'s earlier ...

what are the issue one should care implementing polymorphism. 
Latest Answer: In regards to the point of static and dynamic binding, the virtual keyword needs to be used for any functions that need to be dynamically overriden and not statically overloaded. ...

Latest Answer: In 16 bit development environment like DOS or WIN 3.0 memory management is done in terms of segment:offset addressing style. so in this environment we have segment registers like CS,DS.SS,ES if we declare a near pointer we will be able to access the pointer ...
Read Answers (1) | Asked by : satyagmk
Tags : Pointer

Latest Answer: Well, the basic answer is not possible to call copy constructor explicitly within  a function again.  Because, in the member function it tries to shadow the parameter which is defined at the caller side.  Hence, we cannot invoke copy constructor ...
Read Answers (3) | Asked by : vidya

View page << Previous 1 2 3 4 [5] 6 7 8 9 10 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Expert Members
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape