c Interview Questions | Glassdoor

c Interview Questions

270

interview questions shared by candidates

c Interview Questions

Sort: RelevancePopular Date

write a C function to define strcmp(char *s1, char *s2) to return negative if s1 is smaller, positive if s2 is greater and 0 if they are equal.

2 Answers

Given a sorted array of integers, write a function to remove any duplicates (e.g. 1,2,3,3,3,4,4,5 would go to 1,2,3,4,5)

2 Answers

why C++ deconstructor defined as virtual

2 Answers

Given a time-ordered log of user visits to web pages find the most common 3-page sequence

2 Answers

write a function to set a particular field of register to the desired value. ( For example, set bit 3 - 10 of a word to the given value)

2 Answers

Difference between Heap and Stack

3 Answers

implement your version of memcpy()

2 Answers

When the keyword static is used in C?

3 Answers

What is the output from this code (assume int is 32 bit) int f(int n) { return n * f(n-1); } print(f(100));

2 Answers

N/A

2 Answers
4150 of 270 Interview Questions