C Strings
In C programming, a string is a sequence of characters.
For example, "apple"
is a string/sequence of characters 'a'
, 'p'
, 'p'
, 'l'
, 'e'
.
C String Tutorials
- C – Compare Strings
- C – Concatenate Strings
- C – Convert String to Lowercase
- C – Convert String to Uppercase
- C – Find Index of Substring in String
- C – Print String to Standard Output
- C – Reverse a String
- C – Replace First Occurrence of a Substring
- C – Replace All Occurrences of a Substring
- C – Split String
- C – String Length
- C – Trim String
Checks
- C – Check if String contains Substring
- C – Check if String Starts with Specific Substring
- C – Check if String Ends with Specific Substring
Conversions
- C – Convert String to Integer
- C – Convert Integer to String
- C – Convert String to Float
- C – Convert Float to String
Basic String Handling
- How to Declare and Initialize a String in C
- How to Read a String from Console in C
- How to Read a Multi-Word String from Console in C
- How to Print a String in C
- How to Differentiate Between Character Arrays and Pointers in Strings in C
- How to Dynamically Allocate Memory for Strings in C
String Manipulation usin
- How to Find the Length of a String in C
- How to Copy One String to Another in C
- How to Concatenate Two Strings in C
- How to Compare Two Strings in C
- How to Check if Two Strings are Equal Ignoring Case in C
- How to Get a Character at a Specific Index in a String in C
- How to Find a Substring in a String in C
- How to Split a String in C
- How to Split a String by Space in C
- How to Split a String by Comma in C
- How to Convert a String to Uppercase in C
- How to Convert a String to Lowercase in C
- How to Reverse a String in C
- How to Check if a String is a Palindrome in C
- How to Count Occurrences of a Character in a String in C
- How to Remove a Specific Character from a String in C
- How to Remove Leading and Trailing Spaces from a String in C
- How to Replace a Substring Within a String in C
- How to Convert a String to an Integer in C
- How to Convert a String to a Float in C
- How to Convert an Integer to a String in C
Advanced String Handling
- How to handle large strings efficiently in C
- How to tokenize a string with multiple delimiters
- How to sort an array of strings in alphabetical order
- How to find the most frequently occurring character in a string
- How to implement a custom string copy function (
my_strcpy()
) - How to implement a custom string comparison function (
my_strcmp()
) - How to safely handle user input to prevent buffer overflow in strings
Conclusion
In this C Tutorial, we learned about different concepts of Strings in C programming with dedicated tutorials for each of the concepts.