C Language

Calendar in C: C Mini Project

The mini-project “Calendar in C” is a console application using the C programming language. This project compiles in Code Blocks with the GCC compiler. In this console application, you can check the date for the given month and year. In this project, we are using Zeller’s Congruence. Zeller’s congruence is an algorithm devised by Christian […]

Calendar in C: C Mini Project Read More »

Transpose of a Matrix in C

This blog post will teach you how to Transpose a Matrix in C with a programming example. You can obtain the “transpose” of a matrix by swapping the rows with columns and vice-versa. For example, Input: mat[][] = 8 2 13 14 15 6 3 8 9 Output: 8 14 13 2 15 8 13

Transpose of a Matrix in C Read More »

How to concatenate two strings in C

In this blog post, you will learn to concatenate two strings in C with and without the C library functions. C string is a sequence of characters terminated with a null character ‘\0’. Concatenating two strings means joining one string to another string. For example, Input: string1 =”Aticle”, string2=”World” Output: AticleWorld   The primary prerequisite

How to concatenate two strings in C Read More »

Implement Linear Search in C

In this blog post, you will learn what is linear search and how to implement linear search in C with the help of programming examples. So let’s first understand the linear search.   What is Linear Search? Some people also call it sequential search. It is a method for finding an element within a list.

Implement Linear Search in C Read More »

Undefined Behavior in C and C++

I believe you have read the statement “Undefined Behaviour” or “UB” in many programming books and blogs. Many new programmers and newbies are not able to understand the meaning of this statement. If you are one of them then this blog post is for you because, in this blog post, you will learn the meaning

Undefined Behavior in C and C++ Read More »