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 do you compile the source code with your compiler?

1109

What are the two types of comments, and how do they differ?

1221

If there are two catch statements, one for base and one for derived, which should come first?

1087

If a function doesn’t return a value, how do you declare the function?

1113

If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

1090

What is the difference between the parameter to a template and the parameter to a function?

1175

How many static variables are created if you put one static member into a template class definition?

1092

When is the copy constructor called?

1208

What does new return if there is insufficient memory to make your new object?

1090

How do you establish a has-a relationship?

1173

Show the declaration for a pointer to function returning long and taking an integer parameter.

1223

Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1119

How do you invoke a base member function from a derived class in which you have not overridden that function?

1188

What is an inclusion guard?

1292

Where must the declaration of a friend function appear?

1024


Un-Answered Questions { C++ }

Which is most difficult programming language?

1174


How can you differentiate between inheritance and implementation in c++?

1282


What is polymorphism and why is it important?

1104


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

1128


Can a Structure contain a Pointer to itself?

1211


What is the full form of stl in c++?

1242


write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters

5373


What is interface? When and where is it used?

2211


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

1027


Can you please explain the difference between using macro and inline functions?

1097


What is the oops and benefits of oops programming?

1034


Can I learn c++ in a week?

1130


What is null pointer and void pointer and what is their use?

1155


What do you mean by a template?

1119


How to improve object oriented design skills?

1071