C Program to Convert Decimal to Binary

In this tutorial, we will write a C program to convert decimal to binary. Before that, you must have knowledge of the following topics in C. Binary number The binary numbers are based on 0 and 1, so it is a base 2 number. They are the combination of 0 and 1. For example, 1001, … Read more

C Program to Convert Binary to Decimal

In this tutorial, we will write a program to convert binary to decimal in C. Before that, you must have knowledge of the following topics in C. Binary number The binary numbers are based on 0 and 1, so it is a base 2 number. They are the combination of 0 and 1. For example, … Read more

C Program to Print ASCII Value of a Character

In this tutorial, we will write a program to print ASCII value of a character in C programming. Before that, you should have knowledge on the following topic in C. ASCII stands for American Standard Code for Information Interchange. It is a 7-bit character set that contains 128 (0 to 127) characters. It represents the numerical value of … Read more

C Program to Merge Two Files

In this tutorial, we will write a C Program to merge the contents of two files into a third file. Before that, you may go through the following C topics. Explanation: The program will ask for the two names of the file from where the content is copied and then ask for the third file … Read more

C Program to Append Data to a Text file

In this tutorial, we will write a C program to append data into a file. Before that, you may go through the following C topics. Appending data means adding an additional data at the end of the file such as: test.txt: Hello!New Data: This is simple2code.com After appending the new data to the file, it … Read more

C Program to create a File & write Data in it

This is a file tutorial where we will write a C program to create a file and write into it. Before that, you may go through the following C topics. Explanation: The program is based on the file system in C. The program opens the file system in writing mode, hence the “w”. If the … Read more

C Program to Swap Two Numbers

In this tutorial, we will learn how to swap two numbers in C program. Before that, if you may go through the following topics in C that are used in this program. C Program to Swap Two Numbers using temporary variable The program takes two number inputs from the user that needed to be swapped. … Read more