C Developer Interview Questions | Glassdoor

C Developer Interview Questions


C developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Sequence of numbers in random order and 1 of them is missing how to find that out...

5 Answers

N(N+1)/2 - sum of the input = missing number

It isn't stated that sequence starts from 1. The sequence could be 8,9,5,6!

If the sequence is guaranteed to contain only positive integers, it can be done like so: Read in the sequence, noting the MIN and MAX numbers. The sum IF it started from 1 would be MAX(MAX-1)/2. The sum of the 'missing' numbers (from 1 up to where the sequence actually starts) is (MIN-1)*MIN/2. The missing number is given by taking the difference between the two: X = [MAX*(MAX-1) - (MIN-1)*MIN]/2.

5 adjacent parking spots. whats the probability 2 cars next to each other

2 Answers

Something to do with void main().

2 Answers

int a=3, b=5 cout<<a & b<< a | b << a && b << a || b;

2 Answers

well all questions are expected, string reverse without reversing words for example " this is sentence" => "sentence is this", write c++ code to do so

2 Answers

the most difficult shell script you ever wrote and what r the functions u used..??

1 Answer

"Write a subroutine, function, or method that takes an array of characters and returns an array of the same characters in reversed order with every consonant between 'a' and 'z' lower cased and every vowel between 'a' and 'z' upper cased."

2 Answers

how does a reference counting smart pointger work?

1 Answer

DIfference between TCP and UDP socket programming

1 Answer

what is virtual function?

1 Answer
110 of 128 Interview Questions