C++ Interview Questions
Questions Answers Views Company eMail

Distinguish between: a) Normal layout & Print Layout views b) Windows Clipboard & office Clipboard c) Save & Save As Commands d) Program File & Data File e) Pie Charts & Barr Charts

1721

What is Object Oriented programming.what is the difference between C++ and C?

Infosys,

8 22847

Memory is not a constraint. In a single iteration(NOTE: you can't go back), how will you find out the 10th last node/item in a linked list.

BNB, FDS, Goldman Sachs, Nagarro,

16 23114

how to swap two numbers with out using temp variable

Global eProcure, TCS,

12 17586

Can we use resume in error handling i.e. in the catch block

Infosys,

5 8474

this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout< 1 3887


how to swap two strings without using any third variable ?

11 36288

What is Object Oriental Progam

2 4171

What is Constructor

Angel Broking,

14 27274

Waht is inheritance

6 6919

what is strcture i++ i ++i answer to this i=5 what is the out put

6 9682

how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

Ascent,

1897

why destructor is not over loaded?

5 17104

Why many objects can working together? How objects working togetherM I want to see example code.

2 4200

suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

EA Electronic Arts,

3 8418


Un-Answered Questions { C++ }

What is increment operator in c++?

564


What are move semantics?

675


What is encapsulation with real life example?

572


What is the use of seekg in c++?

599


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

639






What is the latest c++ standard?

688


Why do we use class in oops?

555


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.

6487


When you overload member functions, in what ways must they differ?

590


c++ program to swap the objects of two different classes

1766


What is the average salary of a c++ programmer?

545


What happens if a pointer is deleted twice?

791


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2073


Explain what is oop?

619


Briefly describe a B+ tree. What is bulk loading in it?

805