C Software Developer Interview Questions

396 c software developer interview questions shared by candidates

1. Write a function (in any programming language) that gets an integer parameter and returns the number of 1 digits in its binary representation. 2. How would you implement this even faster if you had infinite memory and processing capabilities.
avatar

Software Developer C++

Interviewed at Sophos

3.7
Mar 7, 2015

1. Write a function (in any programming language) that gets an integer parameter and returns the number of 1 digits in its binary representation. 2. How would you implement this even faster if you had infinite memory and processing capabilities.

Implement a logger with multiple backends for writing logs (screen, file, cloud, tape, etc). After implementing the task gets more complicated: implement an asynchronous logger capable writing to slow devices without blocking the caller.
avatar

C++ Software Developer

Interviewed at BMW Car IT

3.4
Mar 1, 2016

Implement a logger with multiple backends for writing logs (screen, file, cloud, tape, etc). After implementing the task gets more complicated: implement an asynchronous logger capable writing to slow devices without blocking the caller.

Reverse a string of words, such that the last word would come to be the first, the previous to last the second, etc. all the way till the first, which becomes the last. for example "abc def ghi" should become "ghi def abc"
avatar

C++ Software Developer

Interviewed at Rafael

3.5
Apr 29, 2021

Reverse a string of words, such that the last word would come to be the first, the previous to last the second, etc. all the way till the first, which becomes the last. for example "abc def ghi" should become "ghi def abc"

The usual questions like "speak about yourself", "why would you like to join?", "what did you do in the past?" + printed A4 paper with intentionally misformatted and badly written C++ code to analyze line by line in speech and identify logical, runtime and design errors.
avatar

C++ Software Developer

Interviewed at GRAPHISOFT

3.6
Jan 27, 2017

The usual questions like "speak about yourself", "why would you like to join?", "what did you do in the past?" + printed A4 paper with intentionally misformatted and badly written C++ code to analyze line by line in speech and identify logical, runtime and design errors.

1) What does the following code do? 2) What changes would you make to improve the code (not regarding performance)? void func(int array[ARRAY_SIZE]) { int p = 0; for (int r = 0; r < 4; r++) { for (int i = p; i < ARRAY_SIZE; i++) { if (array[i] % 5 == r) { if (i != p) { int temp = array[p]; array[p] = array[i]; array[i] = temp; } p++; } } } }
avatar

C++ Software Developer

Interviewed at Mobileye

3.8
Dec 31, 2024

1) What does the following code do? 2) What changes would you make to improve the code (not regarding performance)? void func(int array[ARRAY_SIZE]) { int p = 0; for (int r = 0; r < 4; r++) { for (int i = p; i < ARRAY_SIZE; i++) { if (array[i] % 5 == r) { if (i != p) { int temp = array[p]; array[p] = array[i]; array[i] = temp; } p++; } } } }

Viewing 11 - 20 interview questions

Glassdoor has 396 interview questions and reports from C software developer interviews. Prepare for your interview. Get hired. Love your job.