C++ General Interview Questions
Questions Answers Views Company eMail

What is the difference between static global and global ?

CA,

2 7067

structure contains int, char, float how it behaves for big endian and little endian?

BITS,

1 4484

When copy constructor can be used?

Symphony,

4 10782

What is the use of static functions?

Symphony,

10 29856

How const functions will be treated by compiler?

Symphony,

3 5383

When volatile can be used?

Symphony,

3 6776

How to stop conversions among objects?

Symphony,

5 8685

How to change constant values?

Huawei, Symphony,

6 13082

How to avoid changing constant values?

Symphony,

2 5719

How to implement flags?

Symphony,

2 5334

Difference between shift left and shift right?

Symphony,

1 5748

Do we have private destructors?

Symphony, TCS,

12 19269

How to avoid a class from instantiation?

Symphony,

8 15028

What are the basics of classifying different storage types, why?

Astergate, Symphony,

2 5463

Difference between static global and global?

Microsoft, Symphony, Wipro,

16 39083


Post New C++ General Questions

Un-Answered Questions { C++ General }

Tell me difference between constant pointer and pointer to a constant.

622


What are friend classes?

603


Can I create my own functions in c++?

589


What is the role of static keyword for a class member variable?

619


What is the main purpose of overloading operators?

582






What is #include iostream h in c++?

602


Explain the isa and hasa class relationships. How would you implement each?

601


What is the difference between structure and class?

544


How are Structure passing and returning implemented by the compiler?

591


What is the extraction operator and what does it do?

603


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

671


What is the full form nasa?

592


Why struct is used in c++?

612


State the difference between delete and delete[].

568


Write a C++ Program to check whether a number is prime number or not?

625