C++ Interview Questions
Questions Answers Views Company eMail

Implement strcmp

Bloomberg, Citadel,

3 8231

Implement strncpy

3 8931

how can u create a doubly linked list with out using pointers?

2 4589

Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3351

Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 5071

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<<"["< 1805


explain dynamic binding by drowing

Cognizant,

2 6149

how can we design a magic square in c++?or suggest me the basic idea of it.

3 7255

What is the differances between a abstract calss and interface

Aviva, Symphony,

5 9181

why we cant create array of refrences

4 6373

what is difference b/w object based and object oriented programming language?

Chaitanya, College School Exams Tests, Educomp, IBM, Infosys, Telko,

18 41777

I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?

2 3605

what is multithreading in c++ , what is difference between multithreading and singlethreading.

4 33082

What are the advantanges of modularity

2 13765

How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1645


Un-Answered Questions { C++ }

explain the reference variable in c++?

562


What are c++ redistributables?

552


How does the copy constructor differ from the assignment operator (=)?

612


What is the basic difference between C and C++?

616


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

579






I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1616


CDPATH shell variable is in(c-shell)

594


Can a class be static in c++?

561


Write about the use of the virtual destructor?

597


Differentiate between the manipulator and setf( ) function?

586


What are pass by value and pass by reference?what is the disadvantage of pass by value?

505


Can we use this pointer inside static member function?

616


Can a function take variable length arguments, if yes, how?

559


What is friend class in c++ with example?

492


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

3195