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

Enumerated type variable

Example that uses an enumerated type variable. This example uses enumerated type is used in C++ in exactly the same way it was used in ANSI-C with one small exception, the keyword enum is not required to be used again when...

Read More

C Programming Tutorials

The C programming language is a general programming language. It can be used to program anything, like computers, embedded systems, operating systems and computer applications. It is a structured and procedural programming language. In the beginning it was developed for UNIX, for system development but due to its ease of use and simplicity it has been used for application development. It is now being used at almost any computer platform and operating system. It is an excellent programming language for due to its simplicity of expression, the compactness of the code, and the wide range of applicability.

Read More

Quicksort implementation in C

Quicksort is a well-known sorting algorithm developed by C.A.R. Hoare: Quicksort. QuickSort is an efficient algorithm based on Divide and Conquer rule and is still a commonly used algorithm for sorting. It works by selecting a ‘pivot’ element from the array and partitioning the other elements into two sub-arrays and recursively sorting them.

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

Print pyramids and diamonds in C Language

I have been receiving a lot of emails and requests through the forums and inline forums attached to the tutorials on my website C and C++ Programming Resources about how to print pyramids and diamonds in different formats using...

Read More