Technical Interview

Home
Added Recently
Data Structures
Puzzles
Google & Microsoft
C/C++ Questions
Java Interview Questions
Quantitative Problems
Algorithms
Featured Articles
Amazon Interview Question
Compaq Interview Question
Technical Interview
Interview Process
Introduction Questions
Object Oriented
Google Pages
Fundamental Questions
Resume Tips
Links
Contact Us
Submit Question/Answer

C/C++ Interview Questions

 

 
 
  • Tree Interview Question: Write a C program to delete a tree (i.e, free up its nodes)

  • Tree Interview Question: Write a C program to determine the number of elements (or size) in a tree. 


  • C/C++ Data Structures Interview Question:How to create a copy of a linked list? Write a C program to create a copy of a linked list.

  • C/C++ Data Structures Interview Question:How to compare two linked lists? Write a C program to compare two linked lists. 

  • C/C++ Data Structures Interview Question:If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

  • C/C++ Data Structures Interview Question:How would you detect a loop in a linked list? Write a C program to detect a loop in a linked list.

  • C/C++ Data Structures Interview Question:How do you find the middle of a linked list? Write a C program to return the middle of a linked list




  • C/C++ Interview Question: What are references in C++? Why do you need them when you have pointers?

  • C/C++ Interview Question: How do you do dynamic memory allocation in C applications? List advantages and disadvantages of dynamic memory allocation vs. static memory allocation.

  • C Interview Question: How do I write code that reads data at memory location specified by segment and offset?...



  • C/C++ Data Structures: Breadth First Search: Write code for doing a breadth first search in a Tree data structure...







 



  • VC++: Tuple:  Explain tuple in visual c++


 



Can you overload a function with the return type?

What is the output of the program below? Why?


Class A
{
public:
void func();
};
class B:pubic A
{
void func(int a);
};
int main()
{
B derv;
derv.func();
}

Solution


 

Why are there no virtual constructors but there are virtual destructors?

 

Solution

 


Why is an array of reference not possible?
 

Solution




What is the difference between copy constructor & assignment operator?

Solution


Next Page