GeekInterview.com
  I am new, Sign me up!
 

C++ Interview Questions


C++ Interview Questions

Questions: 203
Comments: 918
 Showing Questions 111-120 of 203 Questions
<< Previous 8 9 10 11 [12] 13 14 15 16 17 Next >>
 Sponsored Links

 
 C++ Interview Questions
Sorting Options :  

What happens to the member pointers when an exception occures in constructor, while allocating memory ? how can we over come this ?
Read Answers (2) | Asked by : Shyam

Latest Answer: In order to avoid operator ambiguity , :?, ::, . operators are not overloaded.  ...
Read Answers (4) | Asked by : surya

I want C++ code forCreate method inside Principal mentor class called assignAssociates to assign associate mentors from faculty.txt to a course. Create a file named associates.txt store CourseId,FacultyId,Role. Overload assignAssociates function with arguments. Overloading Method1 with three arguments courseId,FacultyId,Role. Overloading Method2 with two arguments courseId,FacultyId. ( Section 6.17 from chapter 6. ) Overload methods compactly and conveniently by using function templates. Create

Latest Answer: Thank you everybody for giving the right answer to the question. However the use of the term "pointer" in the question still leaves a lingering doubt in my mind as to whether the questioner really typoed a reference as a pointer? or did ...
Tags : Pointer

Latest Answer: Constructor is called when an object is created.Copy constructor is called when the copy of an object is made. For e.g. passing parameter to function by value, function returning by value. Copy constructor takes the parameter as const reference to the ...

Latest Answer: depends on the requirement. if you got fixed no of arguments like,sum(int, int)sum(float, float) .. go for Templates.If you have variable arguments and you know the data types, then make use of va_list. ie variable argument list define the function like, ...
Read Answers (3) | Asked by : geeta

Latest Answer: Assuming function is not a part of any class, and member function (obviously) is a part of a class, the difference is their scope.1. Function - is normally refered to a C-style function which has a global level scope. As long as its declaration is visible ...
Read Answers (3) | Asked by : sharath

Latest Answer: To avoid memmory leaks you should use smart pointers. ...

Latest Answer: Copy constructor is 1. a constructor function with the same name as the class 2. used to make deep copy of objects. There are 3 important places where a copy constructor is called. 1. When an object is created from another object of the same type 2. When ...

Latest Answer: include#includeusing namespace std;int main(){             fstream *obj = new fstream();             obj->open ("main.cpp"); ...
Read Answers (4) | Asked by : arup

View page << Previous 8 9 10 11 [12] 13 14 15 16 17 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