C Program to demonstrate usage of #error directive

Previous Next The #error directive is one of the C preprocessor directives whose purpose is to stop the compilation process when a violation of constraint is found. This program demonstrates the use of #error directive in Turbo C++ that is running on a DOS Box 0.74 system running on a Windows 7 64-bit PC. Problem … Read more

C Program to Find Area of Square using Macro

Previous Next This is a simple demonstration of a Macro in C language. This is program is written using Turbo C++ Compiler installed on a Windows XP 64-bit system. You can compile and run this program using an standard C compiler. This program is intended for intermediate level learners who know how to write a … Read more

C Program to implement Insertion Sort Algorithm

Previous Next Algorithms are the backbone of programs and they are studied deeply by computer science students. Each algorithm can perform a specific task. Sometimes we have to choose a specific and better performing algorithm out of many similar functioning algorithms. In this article, I will demonstrate the implementation of a sorting algorithm called Insertion … Read more

C Program To Find Permutation And Combination

The C program to find permutation and combination solves 4 different types of problems. The permutation problems are arrangement problems and the combination problems are selection problems. You will more details about each type of problem in the problem definition section. The list of problems is given below -permutation of a set of distinct objects … Read more

C Program For GCD Of Two Numbers

This is a simple program to find the Greatest Common Divisor (GCD) of two given positive numbers. We wrote and compiled the program on Dev-C++ version 5( beta) compiler installed on a Windows 7 64-bit machine. If you want to try a different C compiler, make sure to modify the existing source code to get … Read more

C Program to Compute Determinant of a 3 x 3 Matrix

The program receives a 3 x 3 matrix and computes the determinant and prints the results. The user provides the values for the matrix. We compiled the program using Dev-C++ 5.0 compiler, but you can use a different compiler such as Turbo C++ 3.0. You must be familiar with the concept of the matrix and … Read more

C Program To Compute Cosine Series

The program to compute cosine series is based on the mathematical concept of sequences and series – particularly power series. The program is compiled using Dev-C++ compiler, but you can use any standard C compiler to compile and run the program. Make sure that you change the source code appropriately according to your compiler specifications. … Read more

C Program to Implement Student Database using Structure

This program is written using DEV C++ version 5. You can use any other standard C compiler to compile and run this program. The best way to learn programming is to do lot of practice writing programs and understanding the logic behind achieving the solution to the problems. In this way you can easily master … Read more

C Program To Draw Bar Diagram With Data

In this article, you will learn to write a C program to draw bar diagram with data input by user. This program is written using Turbo C++ compiler installed on a Windows 7 64-bit PC. The compiler supports C language and the header Graphics.h is used to draw the chart. Problem Definition In this C … Read more

C Program to Draw and Fill Color in a Polygon

In the previous article, you learn to draw a polygon shape with N points. In this article, you will learn to draw a polygon and fill color in it using graphics functions. Problem Definition If you want to draw a polygon shape with N points, where a point is represented using coordinates, then use function … Read more

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.