C++ General Interview Questions
Questions Answers Views Company eMail

Explain friend class?

623

Explain stack unwinding.

632

What is stack unwinding?

606

How to implement is-a and has-a class relationships?

584

Explain the auto storage classes in c++.

597

What are stacks?

605

What are the implicit member functions of class?

595

You run a shell on unix system. How would you tell which shell are you running?

659

Does improper inheritance have a potential to wreck a project?

626

Explain the differences between list x; & list x();.

598

Name the implicit member functions of a class.

594

How come you find out if a linked-list is a cycle or not?

571

Explain how to initialize a const data member.

594

Do we have to use initialization list in spite of the assignment in constructors?

565

Why use of template is better than a base class?

642


Post New C++ General Questions

Un-Answered Questions { C++ General }

What are the methods of exporting a function from a dll?

648


What is the extraction operator and what does it do?

612


Can we use pointers in c++?

608


What is this pointer in c++?

732


how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include //INCLUDE EVERY KNOWN HEADER FILE #include //FOR ANY CASE... #include #include #include main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<

1810






Define anonymous class.

623


Why was c++ made?

652


How much do coding jobs pay?

548


What are the steps in the development cycle?

613


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

715


What is the difference between strcpy() and strncpy()?

610


Can you pass an array to a function in c++?

539


What is c++ in english?

575


What is a rooted hierarchy?

679


What is an html tag?

628