usage of c and c++ in trending technologies code example
Example 1: rfind() in python
#Python rfind() method finds a substring in in the string and returns the highest index. It means it returns the index of most righmost matched subtring of the string. It returns -1 if substring not found.
Example 2: %.*s in c
example:
printf("%.*s",3,"hello");
output:hel
here 3 represents the length of the string to be printed in the "hello string".