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++ General Interview Questions
Questions Answers Views Company eMail

what is an array

20 18235

Write a function which takes a character array as input and reverses it in place.

Lehman Brothers, Vision Infotech,

2 8795

Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator

HCL, Lehman Brothers, Zoomerang,

2 9036

In C++ cout is: a) object b) class c) something else

Infosys, Lehman Brothers,

11 29352

What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;

Lehman Brothers,

4 9030

Why would you make a destructor virtual?

Lehman Brothers,

3 8967

Is there any difference between dlearations int* x and int *x? If so tell me the difference?

Lason,

16 30232

What C++ libraries are you proficient with?

Google,

1 9051

Which algorithm do you like the most? Why?

Google,

2 8556

Have you used MSVC? What do you think of it?

Google,

2 8655

What is design pattern?

Samsung,

2 8693

What are advantages and disadvantages of Design patterns?

IBM, Vodafone,

7 110207

whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };

Huawei,

5 10828

what is importance of data sturture in a programming language?

L&T, TCS, Wipro,

22 48020

If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.

1 6120


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is size_type?

973


What is the difference between strcpy() and strncpy()?

1074


What are the uses of pointers?

1023


What are put and get pointers?

1067


What is a namespace in c++?

1919


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

1105


What is the difference between a type-specific template friend class and a general template friend class?

934


What is one dimensional array in c++?

1045


Difference between pass by value and pass by reference?

1089


Explain the difference between class and struct in c++?

988


What is the two main roles of operating system?

971


What do you mean by function overriding & function overloading in c++?

1102


What do you mean by vtable and vptr in c++?

990


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1088


Why cstdlib is used in c++?

998