C language - Class 17 : Strings | What is a string? | string functions | strcat, strcpy, strlen

Опубликовано: 05 Октябрь 2024
на канале: Ankpro Training
5,789
44

Strings:

A String is a group of characters (OR a sequence of characters).
So we use Array to store the strings.
String is actually an array of characters which is terminated by a null ( /0 ) character.

String handling functions :
C provides a set of built-in (ready) functions to manipulate the strings.
That means we can actually perform some operations on strings such as joining of strings, trimming, counting the characters etc.
All the string handling functions are stored in the a header file called string.h which is a part of C library.
So before using any string function we should include the preprocessor statement #include string.h

strcat ( )
strcpy ( )
strlen ( )
strlwr ( )
strupr ( )
strrev ( )
strcmp ( )
strcmpi ( )
strchr ( )

ankpro
ankpro training
Asp.net MVC
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
C
C++
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays
Strings
Structures
Enums
Functions