Source Code

Ternary Operator with examples in C

Ternary Operator with examples in C

In C Programming, ternary operator allows executing different code depending on the value of a condition. The returned value is the result of the expression…

Ternary Operator with examples in C++

In C++, ternary operator allows executing different code depending on the value of a condition, and the result of the expression is the result of…

Why Learn C as first programming language?

There are hundreds of programming languages used in the professional industry and university/college academics. One needs to be familiar and able to program with at…

C Implementation of Base64 Encoding and Decoding

Base64 encoding and decoding schemes are commonly used to encode binary data. Normally this is required when textual data needs to be transferred over the…

Porter’s Algorithm in C

Originally written in 1979 at Computer Laboratory, Cambridge (England), it was reprinted in 1997 in the book "Readings in Information Retrieval". Initially it was written…

Add time using structures in C++

This is a C++ implementation of adding time using structures. A structure is a convenient tool for handling a group of logically related data items. Structure…

The C++ Standard Library: A Tutorial and Reference

The C++ Standard Library provides lots of built-in functionality in the form of the Standard Template Library (STL). The STL was created as the first…

Common Text Transformation Library

Common Text Transformation Library, CTTL for short, is a set of C++ classes and functions to understand and modify text data. The library implementation is…