Skip to content

Tag Archives: C Strings Programs

C Strings Programs

Converting string to int is a reoccurring task in the programming world. Despite being a simple task, many coders either fail or get confused while… Read More
Write a recursive function to print the reverse of a given string.  C // C program to reverse a string using recursion # include <stdio.h>… Read More
Splitting a string by some delimiter is a very common task. For example, we have a comma-separated list of items from a file and we… Read More
Given an array (or string), the task is to reverse the array/string.Examples :   Input : arr[] = {1, 2, 3} Output : arr[] = {3,… Read More
Given a string Str. The task is to check if it is Pangram or not.  A pangram is a sentence containing every letter in the… Read More
Here, we will build a C Program to Remove leading zeros with the following 2 approaches: Using for loop Using strspn  To remove all leading… Read More
Here, we will build a C Program to compare two strings lexicographically. Given 2 strings s1 and s2, of lowercase English alphabets, denote the lexicographically… Read More
Unicode is the encoding mechanism to assign a unique number to each character. The first 128 characters are assigned as ASCII value means Unicode and… Read More
Character extraction can be done by iterating through the string in the form of a character array. It basically means plucking out a certain amount… Read More
Given two strings str1 and str2, our task is to concatenate these two strings. There are multiple ways to concatenate two strings in C language:… Read More
Prerequisite: How to dynamically allocate a 2D array in C?  Double pointer: A pointer pointing to another pointer is known as a Double pointer. To… Read More
Prerequisite: Pointer in C This article demonstrates the program to find the length of the string using pointers in C. Examples: Input : given_string =… Read More
Given three strings ‘str’, ‘oldW’ and ‘newW’. The task is find all occurrences of the word ‘oldW’ and replace then with word ‘newW’. Examples: Input… Read More

Start Your Coding Journey Now!