As we have already seen in the previous unit, a string is a collection of characters and strings are maintained as character arrays in C programs. The common operations or manipulations that can be performed on strings are: Reading and writing strings Concatenating/combining/joining strings Comparing strings Copying one string into another string Extracting a portion of the string (substring) C provides predefined functions for performing all the above operations or manipulations on strings. Most of these predefined functions are available instring.h header file. The list of predefined functions is given below: Note: The difference between scanf and gets is, scanf
The post How to perform string manipulation in C-Programming appeared first on Coding Security.
How to perform string manipulation in C-Programming
read more