Author: M. Saqib

C Programming: Example C Program to Understand Functions

This C source code demonstrates the implementation of fundamental mathematical operations using functions in the C programming language. It includes functions for calculating the square of a number, reading user input, and determining the area of a rectangle. The main program showcases the usage of these functions with specific values, providing a practical example for beginners to understand basic C programming concepts.

Read More

C Programming: File Listing Utility – Directory Structure

The C program is a file listing utility that displays information about files in a specified directory. It uses command line arguments to display the listing in a tree style. The program iterates through the files in the specified directory and shows all the files and folders in specific directory with the file size, last modified date and other file attributes.

Read More

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

Defensive Programming Techniques

This source code is from Thinking in C++, 2nd Edition, Volume 2, by Bruce Eckel & Chuck Allison. You can use Borland, G++ (For version 3 and above only), Microsoft (For C++ with .NET only) to compile and build this source code. Writing perfect software may be a daunting task for developers, but a few defensive techniques which are routinely applied can go a long way toward narrowing the gap between code and ideal. Defensive programming practices are often used where high availability of the application is required, safety if utmost concern, or security is needed for application to work.

Read More

Inverts the case of the selected text

This is a visual basic 6.0 source code that inverts the case of the selected text. If the upper case text is selected then it will convert it into lower case text. Otherwise to upper case. ASP...

Read More

wav sound player class

This is a visual basic 6.0 wav sound player class that plays any selected sound file in .wav format. It has the filename property to select the file and play property to play the sound file. ASP...

Read More

Are you ready to jump right into the exciting world of mobile development but have little or no programming experience? Then this is the perfect course for you!
View on Udemy