Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

C++ General Interview Questions
Questions Answers Views Company eMail

Implement strcmp

Bloomberg, Citadel,

3 7035

Implement strncpy

3 7652

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

2 3775

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

2928

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


why we cant create array of refrences

4 5218

what is difference between static and non-static variables

10 22529

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

7 27745

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,

1382

how to find the maximum of 10 numbers ?

5 9062

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 2243

What is object slicing and how can we prevent it?

Tech Mahindra,

2 15056

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

1 2998

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

CTS,

4 10255

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

CTS,

3 5957


Post New C++ General Questions






Un-Answered Questions { C++ General }

Can a constructor return a value?

123


Are vectors passed by reference c++?

108


What are the main features of c++?

132


Mention the purpose of istream class?

150


Do vectors start at 0 c++?

123






What are destructors?

149


What is c++ runtime?

138


What is encapsulation in c++ with example?

127


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

1301


Why can templates only be implemented in the header file?

160


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

174


What is data hiding c++?

135


Can malloc be used in c++?

103


What is a manipulative person?

121


What is rtti in c++?

143