C Codes

Case Conversion using Bitwise

Upper Case to Lower Case: Lower Case to Upper Case:

Ebooks

Structures and C – Ebook

Understanding ‘structures’ has given stunning buildings and architectural wonders. Understanding ‘structures’ has explained us how to visualize the universe and the planetary system. Understanding ‘structures’ has given out patterns and designs. Structures have made the study easy and involving. Understanding ‘structures’ will also make you a better programmer. Though we are referring to different structures… Continue reading Structures and C – Ebook

Ebooks

Design of a Programmer – Ebook

There are rules. There sure are rules. But no one is going to tell you those! They aren’t told because everyone makes their own and its one of its kind. The question is how do I make my own rules to be a better programmer? Is it possible? The answer is yes and hence is… Continue reading Design of a Programmer – Ebook

algorithms

2’s Complement – C Program

We can obtain 2’s complement in atleast two ways through a C program. If n is a number then -n will give the result. The next approach is to first flip all the bits (1’s complement) and then add 1. The bits can be flipped using ~ operator. The program below demonstrates both the approaches.

algorithms

Bubble, Selection and Insertion Sorts – C

This post presents the C program of three basic sorting techniques. Bubble Sort: Selection Sort: Insertion Sort:

C Codes

Files in C – Sample Program

The code can also be downloaded from Github HERE. Question: Mobile Service Provider – Service Directory ====================================================== A mobile service provider maintains a minimum data service file with following details: Registration number Name Age City Of a customer for some quick information retrieval The file is named as “service.txt”. The console for this is provided… Continue reading Files in C – Sample Program

C Codes

Fixed Length File Records

Properties: Every record in the file has exactly same size (in byte) Computer knows exact location of records so easy access Slow in transferring the records it has large size Sample Program:

C Codes

Variable Length File Records

Properties: Different record in the file have different size Computer does not know exact location of record, so slow access Fast transferring as it is small in size Sample Program:

C Codes

Load File to Linked List – C

Program to load the integer data from file and add them at the end of singly linked list. The file named ‘numbers.txt’ will hold the integer numbers separated by space.  

General Discussions

Should one Learn Functional Programming?

Functional originates from mathematics. Languages are about expressing the statements of a program in a formal way. The languages stress on the evaluation and using the resulting value. They will get you some strong foundation on computer science programming concepts. I say that one must and should enjoy learning functional programming. At least one from… Continue reading Should one Learn Functional Programming?