C Programming Source Code

ICMP Ping Program in C

ICMP Ping Program in C

This sample illustrates how an ICMP ping app can be written using the SOCK_RAW socket type and IPPROTO_ICMP protocol. By creating a raw socket, the…

graphics: graphics.h Header File

This is the graphics.h header file which contains all the graphics functions and their implementations. It is quite nice to have a look at header…

Print Pyramids and Diamonds Shapes in C Programming

So, here in this article I will demonstrate how you can print pyramids and diamonds using for loop and if condition using C Programming. Building…

The C++ program to find the Shortest Path

This C++ program finds the shortest path between two cities, provided that the map of the two cities and the distances are provided. This program…

Printing ASCII Characters in C [ASCII Table]

The following program prints out the numerical codes of the printable/visible ASCII characters. This C program prints ASCII values of all the alphabets and special…

PC to PC Communication in C

This is a C program to demonstrate PC to PC Communication via RS232 port. Chat with only 3-wire connection. This program is tested with Turbo…

Graphical Piano – “My Piano” – C++

MyPiano 3.0 is a simple piano developed in C++ using graphics functions. By using this piano,user can play, record music etc. This is the third…

Find the longest common sub-sequence between two strings: Dynamic Programming Algorithm

This C program finds the longest common sub-sequence between two strings. It implements the most famous dynamic programming algorithm. Dynamic programming is a computational technique…

Smith-Waterman Algorithm – The Optimal Pairwise Sequence Alignment Problem

The Smith-Waterman algorithm is used for comparing two sequences, typically biological sequences like DNA, RNA, or proteins. It finds the local similarities between the sequences,…

Number Base Conversion in C – Decimal, Binary and Octal

This is a Number Base Conversion Program written in C. It is designed to assist novice C programmers in understanding and implementing basic number base…