CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Strings

Ruby Programming – String interpolation

Ruby supports string interpolation in which we can embed the expressions within the string literals. This is a very useful feature to create formatted strings in a more readable form. We are going to discuss string interpolation in Ruby, in this article. A special sequence of characters “#{ }” we use to represent the expressions […]

C Programming – How to compare strings?

C library has string functions to compare whether the given strings are identical or not. strcmp library function This function takes two arguments, both are strings. Compare the strings and return 0 if the strings are identical; otherwise, this function returns a non-zero value. What is the meaning of non-zero value? When the first string […]

Scroll to top