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

Templates mean

2087

what about you? wahat is your object? introduce your self?

Ajmal Perfumes, TCS,

1 3925

write a program that takes input in digits and display the result in words from 1 to 1000

Wipro,

2430

What do you mean by abstraction. Explain your answer?

5 13116

Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}

Wipro,

1 4070

What is compilation?

Datamatics, TCS,

1 5264

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

Webyog,

4 11474

Please send ford technologies placement paper 2 my mail id

2103

write a c++ program that gives output 4 3 4 2 3 4 1 2 3 4 using looping statement

4 14103

how to swap the variables without using temp and operators

1 3383

There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

2000

string is a class or data type in java?

3 5273

#include using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }

TCS, Wipro,

2 6979

#include using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

CTS, Wipro,

1 5369

WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 5393


Un-Answered Questions { C++ }

What is stack unwinding?

1146


What is pointer with example?

1061


Which function cannot be overloaded c++?

1116


What is oops concept with example?

1026


What is name hiding in c++?

1158


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

2132


What flag means?

961


What is #include iostream?

1255


What is a float in c++?

987


Can I learn c++ as my first language?

1113


what are Operators and explain with an example?

1165


Explain how we implement exception handling in c++?

1061


What are static member functions?

1121


What is a container class? What are the types of container classes in c++?

1269


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1044