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?

1634

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.

2249

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

1 3337

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 6990

who is the father of OPPS

Infosys, TCS,

4 8789

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 4710

what is cast operator?

Microsoft,

2 4938

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

TCS,

1642

why reinterpret cast is considered dangerous?

TCS,

1901

What are callback functions in c++

SoftTech,

1 3663

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

NIIT,

1 3959

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

IBM,

2808

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

1804

what is namespace? what are the uses of namespace?

1 3311

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

Wipro,

2 5142


Un-Answered Questions { C++ }

hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1541


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

642


Is c++ faster than c?

594


What is iterator in c++?

613


What are the advantages of polymorphism?

575






Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2438


What is function prototyping? What are its advantages?

593


How is new() different from malloc()?

635


Can char be a number c++?

593


What is the best c++ book?

711


Write a recursive program to calculate factorial in c++.

609


What is the exit function in c++?

539


What is a forward referencing and when should it be used?

575


What is the most common mistake on c++ and oo projects?

519


What is the benefit of c++?

601