C Developer Interview Questions

3,500 c developer interview questions shared by candidates

Implementing functions in C++11 (or higher) a) Create a “Sum” function that gets ints and returns their sum. The function can be called with any number of parameters. For example: sum(2,5,10) sum(2,5,10,2,5,102,5,102,5,10) sum(3) b) Create a template function that receives std::array of ints of an even size and returns std::array in which each variable “i” is the sum of the input variables 2*i, 2*i+1 For example: {1,2,100,150,200,700} -> {3,250,900}

C++ Developer

Interviewed at GK8

4
Jul 14, 2021

Implementing functions in C++11 (or higher) a) Create a “Sum” function that gets ints and returns their sum. The function can be called with any number of parameters. For example: sum(2,5,10) sum(2,5,10,2,5,102,5,102,5,10) sum(3) b) Create a template function that receives std::array of ints of an even size and returns std::array in which each variable “i” is the sum of the input variables 2*i, 2*i+1 For example: {1,2,100,150,200,700} -> {3,250,900}

Viewing 201 - 210 interview questions

Glassdoor has 3,500 interview questions and reports from C developer interviews. Prepare for your interview. Get hired. Love your job.