Skip to content

Category Archives: C Language

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
Here, we will build a C Program To Print Character Pyramid Pattern using 2 approaches i.e. Using for loop Using while loop Input: rows =… Read More
Here, we will build a C Program to rotate matrix elements with an approach to ring/rotate elements independently. Input: 1 2 3 4 5 6… Read More
Here, we will build a C Program to Generate a Multiplication Table using 2 approaches i.e. Using loops and a 2-D array Using loops and… Read More
Runtime exceptions occur while the program is running. Here, the compilation process will be successful.  These errors occur due to segmentation faults and when a… Read More
Here we will see how to build a C Program to Print the first letter of each word. Given a string, we have to find… Read More
Here we will build a C Program to Find Common Array Elements between Two Arrays. Given two arrays we have to find common elements in… Read More
Here, we will see how to build a C Program For String to Long Conversion using strtol() function. Syntax: long int strtol(char *string, char **ptr,… Read More
Armstrong numbers are those numbers in which the sum of digits raised to the power of a number of digits in that number will be… Read More
Given two Binary String, we have to return their sum in binary form. Approach: We will start from the last of both strings and add… Read More
We can make a simple calculator using C language by two approaches using switch case and if-else statement. Input:  7+8 8-9 8*7 8/3 Output: Enter… Read More
Here we will see different types of errors using a C program. In any programming language errors are common. If we miss any syntax like… Read More
Here, we will see how to write a C program to find the normal and trace of a matrix. Below are the examples: Input: mat[][]… Read More
Here, we will see how to interchange the elements of first and last in a matrix across rows. Below are the examples: Input: 6 3… Read More
Here we will see how to print an inverted hollow star pyramid using a C program. Below are the examples: Input: row = 5Output:********* *  … Read More

Start Your Coding Journey Now!