String functions interview questions and answers
This article provides answers to common string function interview questions. It includes source code and code comments.
What's included in the purchase
PDF file with the following:
- Find the first occurrence of a character
- Check if two strings are equal
- Check if the first string is greater than the second
- Check if the first string is smaller than the second
- Find the substring
- Extract leftmost n characters from the string
- Extract rightmost n characters from the string
- Convert string to uppercase
- Convert string to lowercase
- Reverse a string
- Replace the first occurrence of a character with a new char
- C/C++ source code for all examples
Length
5 pages
Difficulty
Easy
About the author
The author has over 15 years of experience as architect and engineering director for several Fortune 500 companies. He loves programming interviews and writes frequently on the topic. Here are some additional details about the author:
- Expert in C#, .NET, ASP.NET, XML, XSLT, enterprise JAVA and client side technologies
- Extensive experience in C, C++, VB.Net, ASP, UML, Design Patterns and SEO
- Proficient in major databases including Microsoft SQL Server and Oracle
- In-depth knowledge of cloud providers including Amazon AWS and Microsoft Azure
- Clear understanding of all 3 major mobile platforms – iOS, Android and Windows Phone