C++ General Interview Questions
Questions Answers Views Company eMail

write the programme that convert a interger to biniry number

Amazon,

1 2189

difference between macro and function?

3 5802

Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?

CSC,

6 6937

Under what conditions is multiple inheritance not recommended?

1 4196

diff between pointer and reference in c++?

1 4276

How size of a class can be calulated?

2 3901

What is optimization in c++? when using volatile.optimization is not possible..what does this mean?

1 3289

how is returning structurs from functions?Show an eg?

GE,

1 3391

What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }

4 4754

Is there a datatype string in c++?How is the memory allocation?

3 3985

Difference between linked list and array?

3 4889

What is the difference between Char a[ ]=”string” and char *a=”String”

Adobe,

11 15275

what are prototypes

Infosys, TCS,

4 5573

Why can you not make a constructor as const?

3 5229

what is polymorphism?

Accenture,

14 14100


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is the use of namespace std in C++?

602


What is setfill c++?

673


How do you flush std cout?

556


What is pure virtual function?

615


explain the reference variable in c++?

560






How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3190


What are the types of pointer?

535


What is private, public and protected inheritance?

579


Is c++ low level?

565


What are default parameters? How are they evaluated in c++ function?

649


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

569


Which sort does c++ use?

568


Why was c++ created?

535


What size is allocated to the union variable?

579


What are the five basic elements of a c++ program?

569