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

Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

EA Electronic Arts,

4 14151

i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

Infosys,

3 13806

i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 6524

if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.

3 6084

sir plz send me a set of questions that been frequently held in written examination during campus selection.

TCS,

2061

Write a program that read 2o numbers in and array and output the second largest number. Can anybody help??

7 10900

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.

GE,

5 8486

Consider a c++ template funtion template T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.

LG, Samsung,

7 17425

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

TCS,

2131

Disadvantages of c++

HCL,

8 18667

what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 11513

In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 7559

How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)

1 3339

what are the disadvantages of C++?

ATS, Infosys, UNI, Wipro,

25 96011

what is a virtual class?

Cap Gemini, IBM, Infosys, Trinity Technologies,

5 14895


Un-Answered Questions { C++ }

Can you please explain the difference between static and dynamic binding of functions?

1033


Explain virtual destructor?

1201


How oops is better than procedural?

1100


What is the difference between *p++ and (*p)++ ?

1361


When do we run a shell in the unix system?

1084


what are the decision making statements in C++? Explain if statement with an example?

1099


What are the various access specifiers in c++?

1034


What is c++ best used for?

1068


What is basic concept of oop?

1170


What's the order in which the local objects are destructed?

1266


Is nan a c++?

1155


Can you inherit a private class?

1105


List the issue that the auto_ptr object handles?

1026


What are namespaces in c++?

1099


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1251