Category Archives: C Programs

Structure Pointer: It is defined as the pointer which points to the address of the memory block that stores a structure is known as the… Read More
PGM or Portable Gray Map file is a grayscale image where each pixel is encoded with 1 or 2 bytes. It contains header information and… Read More
It is quite common that errors may occur while reading data from a file in C++ or writing data to a file. For example, an… Read More
In this article, we will discuss some use cases of Mouse Programming: Restrict mouse pointer: The mouse pointer can be restricted in particular rectangle. The… Read More
In this article, we will discuss some use cases of Mouse Programming: Display Mouse Pointer in graphics mode: For displaying the Mouse Pointer, first enable… Read More
Till now we have seen only static output on the black window in C/C++ without any peripheral device interaction(like mouse). Here static means that interaction… Read More
Given an integer N. A number guessing game is a simple guessing game where a user is supposed to guess a number between 0 and… Read More
ToDo List App is a kind of app that generally used to maintain our day-to-day tasks or list everything that we have to do, with… Read More
Given a binary string S, the task is to write a program for DFA Machine that accepts a set of all strings over w ∈… Read More
Given an array arr[] of size N, the task is to find the frequency of each distinct element present in the given array. Examples: Input:… Read More
In C programming, using arrays and string for data storage at run time which is volatile and gets memory in RAM. But to store data… Read More
What is Bug tracking system? A bug tracking system is software that keeps track of bugs that the user encountered in any software development or… Read More
Given two integers A and B, the task is to find the maximum of two numbers using Bitwise Operators. Examples: Input: A = 40, B… Read More
An array is a collection of similar types of elements. For example, an integer array holds the elements of int types while a character array… Read More
Pre-requisite: Hamming Code Given a message bit in the form of an array msgBit[], the task is to find the Hamming Code of the given… Read More