Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



C++ Interview Questions
Questions Answers Views Company eMail

How does free know the size of memory to be deleted

804

What's the value of the expression 5["abxdef"]?

1494

How to delete array of objects in C++? Proof by C++ code for proper deletion

792

How to stop class inheritance in C++ with condition that object creation should be allowed

676

What is Advantage and Use of THIS pointer in C++ – Scenarios?

700

C++ Public access specifier instead of Private – What is bad ?

813

Is there a difference between class and struct?

955

How many times will this loop execute? Explain your answer.

823

How can a C function be called in a C++ program?

693

C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

789

What is a built-in function?

1 1256

What is the difference between global int and static int declaration?

949

Difference between const char* p and char const* p?

1 1526

Specify different types of decision control statements?

799

Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

750


Un-Answered Questions { C++ }

Can we overload operator in c++?

980


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1230


describe private access specifiers?

1134


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

2019


What is c++ good for?

1002


Do class declarations end with a semicolon?

1031


What is c++ try block?

991


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

3174


What is constant in c++ with example?

1076


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

2072


What is multilevel inheritance?

1153


Write about the members that a derived class can add?

934


How to access a variable of the structure?

1015


What is microsoft c++ redistributable?

1028


What is polymorphism oop?

1008