Tag Archives: C# Beginners Question

Back to Basic : How to count occurrences of a specific word in a sentence using C# ?

By | March 1, 2016

Write a C# code that count the occurrences of a word in a given sentence or string – yet another frequently  asked question in interview for the beginners. During the interview, while I found most of the developers were able to write the code, however the approaches taken are seems to  be lengthy. For an example, using substrings… Read More »