C++ General 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 4590

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

3351

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


why we cant create array of refrences

4 6373

what is difference between static and non-static variables

10 25041

What does '\r' and '\b' mean? Please explain with example.

7 32132

what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

Honeywell,

1761

how to find the maximum of 10 numbers ?

5 10716

Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 2801

What is object slicing and how can we prevent it?

Tech Mahindra,

2 16161

What is multithreading and what is its use?Whats are multithreading techniques used in C++?

1 3674

What is a mutex and a critical section.Whats difference between them?How do each of them work?

CTS,

4 11652

What is a pure virtual function? Why is it represented as = 0...how is the internal implementation for the same

CTS,

3 7047


Post New C++ General Questions

Un-Answered Questions { C++ General }

What do you mean by inheritance in c++?

592


How do you define a class in c++?

637


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

631


What are the comments in c++?

563


Explain virtual class and friend class.

589






Is it possible to pass an object of the same class in place of object reference to the copy constructor?

559


What is a constructor and how is it called?

587


Should the this pointer can be used in the constructor?

545


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

670


Which bit wise operator is suitable for putting on a particular bit in a number?

708


Why pointer is used in c++?

604


What are all predefined data types in c++?

550


What is class in c++ with example?

562


What is function declaration in c++ with example?

538


What does return 0 do in c++?

571