C Interview Questions

5,483 c interview questions shared by candidates

Sample Q: In what better ways memory allocations can be taken cared ? Assuming you were asked about preferred language (C++), and you tried to answer how could you use smart pointers/ custom memory pools but the expected answers to interviewers was a sweet mention about Java garbage collector.
avatar

C/C++ Specialist

Interviewed at Xoriant

3.9
Oct 27, 2015

Sample Q: In what better ways memory allocations can be taken cared ? Assuming you were asked about preferred language (C++), and you tried to answer how could you use smart pointers/ custom memory pools but the expected answers to interviewers was a sweet mention about Java garbage collector.

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

3.9
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

3.9
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 3561 - 3570 interview questions

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