C++ Interview Questions
Questions Answers Views Company eMail

INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1628

write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2240

In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 3322

if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3

3 6967

who is the father of OPPS

Infosys, TCS,

4 8750

create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

CTS, Delhi University,

2 4696

what is cast operator?

Microsoft,

2 4922

when to use 'mutable' keyword and when to use 'const cast' in c++

TCS,

1639

why reinterpret cast is considered dangerous?

TCS,

1894

What are callback functions in c++

SoftTech,

1 3651

write a program to add two numbers without using an arithmetic operator.

NIIT,

1 3939

How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

IBM,

2804

write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

1802

what is namespace? what are the uses of namespace?

1 3298

what is opps?why it is use in programming language?

Wipro,

2 5122


Un-Answered Questions { C++ }

Define virtual constructor.

633


What is interface in oop?

655


What is c++ and its uses?

612


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

546


What is and I oop mean?

609






Explain the concept of memory leak?

618


What is the full form of oops?

603


Can union be self referenced?

569


What is buffer and example?

519


Describe linkages and types of linkages?

558


How will you print a list of all unique words from a string which may contain repeated words?

533


What is the advantage of c++ over c?

553


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

580


What is conversion constructor in C++

570


Write a program to interchange 2 variables without using the third one.

578