C Library Functions

Use the gotoxy() function – conio.h – Old School C

Conio.h in C and C++ is one of the libraries that have a set of functions allowing for interacting with the console and, therefore, expanding the opportunities of console applications. Among these functions, gotoxy is essential for cursor control, allowing precise placement of text on the console screen. This article will explain the gotoxy function’s…

C Library Functions

How and when to Use the cprintf() Function

Conio.h in C and C++ is one of the libraries that have a set of functions allowing for interacting with the console and, therefore, expanding the opportunities of console applications. The function that I want to discuss, cprintf, is closely connected with the question above because it can be used with arguments that are strings….

C Library Functions

Change text color in C using conio.h – Old School C

In C programming, when we are dealing with console applications, the conio.h provides several functions to enhance user interaction by manipulating the console screen. One of the most important functions is textcolor(), that allows us to change the text foreground color of text displayed in the console. Overview of conio.h conio.h stands for console input/output….

C Basic Programs

CONCEPT OF ASCII CODES

ASCII stands for American Standard Code for Information Interchange. As we know, Computers can only understand numbers; an ASCII code is the numerical representation of a character or a symbol such as ‘a’ or ‘#’. For example, ASCII code of ‘A’ is 65, ‘B’ is 66, and so on.

C Basic Programs

Swap two numbers using bitwise XOR operator ^

We can swap two numbers using the XOR operator. The result of the bitwise XOR operator is 1 if the corresponding bits of two operands are opposite. It is denoted by ^. To know more about working of XOR, refer to this tutorial: https://youtu.be/zkQuKuITyYo It can also be written as, As the order of evaluation of XOR…

Array

Array Merging

The way of combining two arrays into a single array is known as Array merging. In this program, we are going to merge the content of two arrays into a single array.

Array

Array Sorting

Sorting is a technique to arrange the elements in an order (increasing or decreasing). In this program, we are going to sort the content of an array using selection sort algorithm.