c Interview Questions

Sort: Popular Date
Sort: Popular Date

“Describe to me in C how to take the word "FOX" and rearrange the words backwords to spell "XOF" using only a stack and one variable.”

“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.”

“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)”

“why C++ deconstructor defined as virtual”

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

“Difference between Heap and Stack”

“implement your version of memcpy()”

“When the keyword static is used in C?”

“What is the output from this code (assume int is 32 bit)

int f(int n)
    return n * f(n-1);


4150 of 276 Interview Questions