C++ Interview Questions
Questions Answers Views Company eMail

tell about sorted linked list

1 3445

You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so

1 3292

what is oppes

2 3959

I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe

1 6367

what is the difference between class to class type conversion and copy constructor ?

2 5234

class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 7324

Write 7 differences between "Public" function and "Private" function?

IBM, Wipro,

2 15652

what do you mean by static member variable?

2 5082

What is a unary operator?

5 6967

Conversion from a basic type to a class type may be achieved using______________

HCL,

5 20088

A file pointer always contains the __________ of the file

5 10339

difine hierarchical inheritance.

ASD Lab, TCS,

9 24918

what is use to destroy an object? illustrate.

TCS,

5 6397

What is name mangling?

3 5887

What is dangling pointers?and what is memory leak?

5 41241


Un-Answered Questions { C++ }

Name four predefined macros.

596


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1009


To which numbering system can the binary number 1101100100111100 be easily converted to?

608


Explain the differences between private, public and protected and give examples.

567


What flag means?

526






Is c++ double?

566


What is the arrow operator in c++?

562


Do vectors start at 0 c++?

535


What does extern mean in a function declaration in c++?

704


What is overloading unary operator?

604


What is function overriding in c++?

606


Please explain class & object in c++?

606


Explain the concept of friend function in c++?

605


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

588


Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

569