C++ General Interview Questions
Questions Answers Views Company eMail

What is the difference between static global and global ?

CA,

2 7490

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

BITS,

1 4881

When copy constructor can be used?

Symphony,

4 11486

What is the use of static functions?

Symphony,

10 31172

How const functions will be treated by compiler?

Symphony,

3 6082

When volatile can be used?

Symphony,

3 7362

How to stop conversions among objects?

Symphony,

5 9431

How to change constant values?

Huawei, Symphony,

6 14127

How to avoid changing constant values?

Symphony,

2 6184

How to implement flags?

Symphony,

2 5798

Difference between shift left and shift right?

Symphony,

1 6088

Do we have private destructors?

Symphony, TCS,

12 20785

How to avoid a class from instantiation?

Symphony,

8 16080

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

Astergate, Symphony,

2 5964

Difference between static global and global?

Microsoft, Symphony, Wipro,

16 41484


Post New C++ General Questions

Un-Answered Questions { C++ General }

Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

744


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1780


What is the difference between new() and malloc()?

1183


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

3387


Is overriding possible in c++?

763


What does new in c++ do?

739


What is the use of data hiding?

772


What is the difference between global variables and static varables?

807


Differentiate between a template class and class template in c++?

838


What is the disadvantage of using a macro?

800


What is an associative container in c++?

756


What is long in c++?

969


Explain polymorphism?

822


How much do c++ programmers make?

765


Why are pointers used?

747