Least recent cache. leet code (medium)
Software Developer C Interview Questions
1,018 software developer c interview questions shared by candidates
Identify memory leak: // this function has a memory leak. Can you find it? int i = 5; // <-- char *pszString = (char *)malloc(32); memset(pszString, 0, sizeof(32)); strcpy(pszString, "hi"); if (i > 5) { sprintf(pszString, "%i is greater than 5", i); printf("%s\n", pszString); free(pszString); } else if (i < 5) { sprintf(pszString, "%i is less than 5", i); printf("%s\n", pszString); free(pszString); } }
Count letters in a sentence omitting non alphabet characters: /// /// E.g given the // input string "Hello there!", print the output has to be 'h': 2 /// 'e': 3 'l': 2 'o': 1 't': 1 'r': 1 /// /// input The string containing the letters to count /// // Omit any character that is not in the English alphabet
How to override a function in C++?
C++ language specific questions since it was a C++ specific role.
Database design and well-known implementations (SQL vs. noSQL)
There was a technical test on C++ for me very difficult
How can a string which may only contain four different letters be represented in a class and use minimal storage?
HR round - pretty straight forward. Reason for change? Why this position? What is the expectation? 2nd round - Solid basics from what is mentioned in the resume. C++ STL and Algorithms. 1 or 2 problem solving 3rd round - Design a system. C++ STL, Data Structures (I was asked related to optimal search)
Why did you choose the technology you applied for.
Viewing 331 - 340 interview questions