1. Careers
You can opt-out at any time. Please refer to our privacy policy for contact information.

C/C++ Interview Questions

By

Review a list of frequently asked C/C++ interview questions and more questions asked during job interviews where you will be asked about your technical skills.

C/C++ Interview Questions

What leads to code-bloating in C++?

Write a C program to find the depth or height of a tree.

Write a program that reads a positive integer N and then prints an "N times table" containing values up to N * N.

How would you check if a binary tree is balanced?

How do you compare two linked lists? Write a C program to compare two linked lists.

How would you detect a loop in a linked list? Write a C program to detect a loop in a linked list.

How do you do dynamic memory allocation in C applications? Describe the advantages and disadvantages of dynamic memory allocation vs. static memory allocation.

What's the difference between a constructor and a destructor?

What is function overloading and operator overloading?

Why doesn't the following statement work?
char str[ ] = "Hello" ;
strcat ( str, '!' ) ;

What is the difference between
char s[]="Hello";
char *s="Hello";

General Job Interview Questions
In addition to job specific interview questions, you will also be asked more general questions about your employment history, education, strengths, weaknesses, achievements, goals and plans. Here's a list of the most common interview questions and examples of answers.

Read More: How to Prepare for an Interview | What to Wear to a Job Interview | Top 10 Job Interview Tips | Common Interview Mistakes to Avoid

©2014 About.com. All rights reserved.