Tag: C Programming

Copying One File to another in C

This is a simple C program that copies the contents of one file onto another file. It is similar to Unix’s cp  command. This C program is called with two parameters i.e. the names of two files. The contents of the file referenced in second parameter are copied onto the file which is referenced by first parameter. 

Read More

Different ways to initialize an array in C Programming

In C, an array can be initialized using aggregates, which are a collection of values enclosed in braces ({}) and separated by commas. Another way to initialize array by using a loop which allows you to set the initial values of an array using a more flexible and dynamic approach. The basic idea is to use a loop to assign values to each element of the array based on some condition or calculation.

Read More

C Programming Tutorials

The C programming language is a versatile and widely-used programming language which makes it an ideal starting point for novice programmers. Originally developed for UNIX system development, C has evolved to become a go-to language for a variety of applications, including embedded systems, operating systems, and general computer applications.

Read More

Quicksort Implementation in C

Quicksort is a widely used sorting algorithm known for its efficiency and simplicity. Developed by Tony Hoare in 1960, this sorting technique follows the “divide and conquer” paradigm which makes it a powerful tool for organizing data in ascending or descending order. Programmers find quicksort to be an excellent introduction to sorting algorithms due to its straightforward implementation and elegant design.

Read More

TrueCrypt Free Open Source Encryption Software

TrueEncrypt is a free open Source Encryption Software written in C++ programming language. If you haven’t used TrueCrypt before but need to protect confidential information and documents then I can totally propose to use this Free Software. The latest version has the ability to encrypt the whole drive on windows operating system. So without the password (which you set to encrypt the drive), you can not run your windows operating system.

Read More

C Programming – Math.h library functions

Today I will try to explore math.h (library) header file provided to the programmers by turbo C++ compiler. Mostly people try to implement their own implementation of these functions; this is due to the lack of knowledge about Math library provided by turbo C++.

Read More