String is an array of character terminated by null character ('\0') and is stored in consecutive memory location.
Each character in string occupies one byte of memory.
Declaration of String
char variable-name[size];
here, size refers to number of character to be stored.
Below are the some important c program of string:-
> Some Important Alphabet pattern program.
> C program to input a sentence and count the number of vowels,consonants and spaces.
> C program to check whether the given string is palindrome or not using string handling function.
> C program to find the length of the given string without using string handling function.
> C program to convert all lowercase letters into uppercase letters and vice versa without using string handling function.
> C program to reverse a string without using string handling function
> C program to copy content of one string to another string without using string handling function.
> C program to check whether the given character is present in given string or not.
> C Program to insert a given character at a given array index of a given string. Eg:if a given string is “gnesh” and given character to insert is ‘a’ and the array index is 1,then resulting string should be ganesh.
> C Program to check whether the given word is present in the given string or not.
> C program to input 'n' name of students and sort them in alphabetical order.
> Write C program to delete space from a given sentences.
Some other important c program:-
Important C program of 1D Array
Important C program of Matrix(2D Array)
Important C program using function
Click Here to download the complete notes of C programming
Each character in string occupies one byte of memory.
Declaration of String
char variable-name[size];
here, size refers to number of character to be stored.
Below are the some important c program of string:-
> Some Important Alphabet pattern program.
> C program to input a sentence and count the number of vowels,consonants and spaces.
> C program to check whether the given string is palindrome or not using string handling function.
> C program to find the length of the given string without using string handling function.
> C program to convert all lowercase letters into uppercase letters and vice versa without using string handling function.
> C program to reverse a string without using string handling function
> C program to copy content of one string to another string without using string handling function.
> C program to check whether the given character is present in given string or not.
> C Program to insert a given character at a given array index of a given string. Eg:if a given string is “gnesh” and given character to insert is ‘a’ and the array index is 1,then resulting string should be ganesh.
> C Program to check whether the given word is present in the given string or not.
> C program to input 'n' name of students and sort them in alphabetical order.
> Write C program to delete space from a given sentences.
Some other important c program:-
Important C program of 1D Array
Important C program of Matrix(2D Array)
Important C program using function
Click Here to download the complete notes of C programming
Comments
Post a Comment