C++ Interview Questions
Questions Answers Views Company eMail

just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6490

What is a friend function & its advantage?

MIT,

1 3737

What is a friend function & its advantage?

TCS,

2 13357

wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value

1 7360

what are the iterator and generic algorithms.

1465

what are the iterator and generic algorithms.

1485

what are the iterator and generic algorithms.

1691

What is the difference between the c++ & java?

2 3687

What is the difference between the C & C++?

HCL,

9 8282

Input: enter the value:1234 output: 1 2 3 4 write a program to get above output.....

Bally Technologies, IBM, SoftSol,

4 13865

Write a program to sort the number with different sorts in one program ??

NIIT,

1924

3- Write a program to find larger and smaller of the two numbers.

Luminous,

4 8003

check whether a no is prime or not.

TCS,

3 4845

Write an algorithm that determines whether or not an almost complete binary tree is a heap.

TCS,

3433

i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1839


Un-Answered Questions { C++ }

Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.

574


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

635


What is diamond problem in c++?

542


What are the benefits of operator overloading?

683


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1625






Describe Trees using C++ with an example.

610


Explain polymorphism?

586


In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

594


What is microsoft c++ redistributable?

619


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

682


List different attributes in C++?

643


What is c++ programming language?

582


Should the member functions which are made public in the base class be hidden?

568


What do you mean by a template?

626


What is late binding c++?

547