Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

C program to reverse a given string

Categories: Strings. 1 Comment on C program to reverse a given string

In this article we will learn to implement a C program to reverse a given string. A C program is provided below to reverse a given string without using predefined function.   Program is as follows: #include<stdio.h> #include<string.h> int main() { char str[20]; printf("Enter a string: "); scanf("%s", str); int length = strlen(str); for(int i=0, […]

Read the rest of this entry »

C program to compare two strings without using library function

Categories: Strings. No Comments on C program to compare two strings without using library function

In this article we will learn to implement a C program to compare two strings without using library function. A C program is provided below to compare two strings without using predefined function. Program is as follows: #include<stdio.h> #include<string.h> int main() { char str[20]; printf("Enter a string: "); scanf("%s", str); char newstr[20]; printf("Enter another string: […]

Read the rest of this entry »

C program to concatenate two strings without using library functions

Categories: Strings. No Comments on C program to concatenate two strings without using library functions

In this article we will learn to implement a C program to concatenate two strings without using library functions. A C program is provided below to join or concatenate two strings without using predefined function like strcat. Program is as follows: #include<stdio.h> #include<string.h> int main() { char str[20]; printf("Enter a string: "); scanf("%s", str); char […]

Read the rest of this entry »

C program to copy one string to another

Categories: Strings. No Comments on C program to copy one string to another

In this article we will learn to implement a C program to copy one string to another. A C program is provided below to copy one string to another without using predefined function strcpy.   Program is as follows: #include<stdio.h> #include<string.h> int main() { char str[20]; printf("Enter a string: "); scanf("%s", str); char newstr[20]; int i=0; […]

Read the rest of this entry »

C program to find the length of a string without using strlen

Categories: Strings. No Comments on C program to find the length of a string without using strlen

In this article we will learn to implement a C program to find the length of a string without using strlen. A C program is provided below to find length of a string without using predefined function.   Program is as follows: #include<stdio.h> int main() { char str[20]; printf("Enter a string: "); scanf("%s", str); int […]

Read the rest of this entry »

C program to implement predefined string functions

Categories: Strings. No Comments on C program to implement predefined string functions

In this article we will learn to write a C program to implement predefined string functions. A C program is provided below to demonstrate implementing predefined string functions like strlen, strcmp, etc.   /* * Implementation of predefined string functions: * strlen, strcmp, strcat, strrev, ispalindrome * Author: P.S.SuryaTeja */ #include <stdio.h> #include <conio.h> #include […]

Read the rest of this entry »

C program to compare, concatenate and append strings using user defined functions

Categories: Strings. No Comments on C program to compare, concatenate and append strings using user defined functions

In this article we will learn to implement a C program to compare, concatenate and append strings. A C program is provided below to read two strings and perform comparison, concatenation and append operations.   Program is as follows: /* * C program to implement the following string functions using user defined functions: * i. […]

Read the rest of this entry »

C program to perform the different operations on strings

Categories: Strings. No Comments on C program to perform the different operations on strings

In this article we will learn to implement a C program to perform the different operations on strings using functions. A C program is provided below to perform various operations on strings.   /* * C program to perform the following operations on strings using functions: * i. To insert a sub string in to […]

Read the rest of this entry »