C Interview Questions

5,483 c interview questions shared by candidates

General object oriented programming questions, such as as “what’s encapsulation, function overloading”. Some questions pertaining to C, such as “what’s the difference between structs and unions”, “where does execution start in a C program”. Then finally some basic Linux command line questions, “how to create files”, “how to check system resources”, “difference between grep and egrep”. If you use Linux and know C/C++ you will cruise through the first 2 rounds.
avatar

C/C++ Software Developer

Interviewed at Cognizant

4
Dec 2, 2020

General object oriented programming questions, such as as “what’s encapsulation, function overloading”. Some questions pertaining to C, such as “what’s the difference between structs and unions”, “where does execution start in a C program”. Then finally some basic Linux command line questions, “how to create files”, “how to check system resources”, “difference between grep and egrep”. If you use Linux and know C/C++ you will cruise through the first 2 rounds.

In the programming round, I encountered a question that required me to join three SQL tables and use a GROUP BY clause. This was followed by a programming question that involved data structures like matrices and arrays. Finally, there was a question that tested my knowledge of front-end web technologies, specifically HTML, CSS, and JavaScript.
avatar

Gen C

Interviewed at Cognizant

4
Oct 13, 2025

In the programming round, I encountered a question that required me to join three SQL tables and use a GROUP BY clause. This was followed by a programming question that involved data structures like matrices and arrays. Finally, there was a question that tested my knowledge of front-end web technologies, specifically HTML, CSS, and JavaScript.

basically it was technical interview, it's a 20 minutes, i was asked to give a self intro, explain oops concepts in detail(with example), asked me rate on java out 5 , i answered 4, then interview asked write a Fibonacci series using recursion, queations on collection framework (what is it, examples, difference between arraylist and arrays, what is hashmap explain about it and difference between stack and queue) , what is comparator and comparable, asked me explain and to go through file handling process and some SQL questions like what is different type keys, difference drop, truncate and delete .
avatar

Gen C

Interviewed at Cognizant

4
Nov 25, 2025

basically it was technical interview, it's a 20 minutes, i was asked to give a self intro, explain oops concepts in detail(with example), asked me rate on java out 5 , i answered 4, then interview asked write a Fibonacci series using recursion, queations on collection framework (what is it, examples, difference between arraylist and arrays, what is hashmap explain about it and difference between stack and queue) , what is comparator and comparable, asked me explain and to go through file handling process and some SQL questions like what is different type keys, difference drop, truncate and delete .

Viewing 3591 - 3600 interview questions

Glassdoor has 5,483 interview questions and reports from C interviews. Prepare for your interview. Get hired. Love your job.