C Programming

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…

Ten Most Recommended C books for Expert Programmers

The “Hello, World!” Program in C

This is a simple “Hello, World!” C program to display "Hello, World!" text on the computer screen or display device. Typically, the best way to…

The C++ Modulus Operator [mod or % operator]

The C++ language provides a built-in mechanism, the modulus operator (mod or %), that computes the remainder that results from performing integer division.

Find the middle element of linked list in C

In order to find middle element of linked list in one pass, you need to maintain two pointers, one increment at each node while other…

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…

Kruskal’s Algorithm

This is the implementation of Kruskal's Algorithm in C and C++ Programming Languages. This algorithm is directly based on the generic MST (Minimum Spanning Tree)…