Strings A string is a collection of characters which is treated as a single data item. A group of characters enclosed in double quotes is known as a string constant. Some of the examples of string constants are: “hai” “hello world” “My name is suresh” In C programming, there is no predefined data type to declare and use strings. So, we use character arrays to declare strings in C programs. The common operations that can be performed on a string are: Reading and writing strings Combining strings together Copying one string to another Comparing strings for equality Extracting a portion
The post How to work with strings in C – Programming appeared first on Coding Security.
How to work with strings in C – Programming
read more
Tidak ada komentar:
Posting Komentar