Category: C Programming Source Code

C Program to show Fibonacci Sequence

This C program prints out the first Fibonacci series of N numbers. In mathematics, the Fibonacci numbers are a sequence of numbers named after Leonardo of Pisa, known as Fibonacci. The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, thus creating the sequence 0, 1, 1, 2, 3, 5, 8, etc. The standard form of writing Fibonacci series is:

Read More

Datagram Operations using C

This application demonstrates the various datagram operations possible from NetBIOS. This includes sending and receiving both directed and group datagrams as well as broadcast datagrams.

Read More

Writing UDP Data Sender and Receiver in C

The sender program is a UDP datagram sender that can be configured through command line options. It initializes Winsock, creates a UDP socket, and either connects to a recipient’s IP address or uses sendto() to send datagram messages. The receiver program complements the sender by receiving UDP datagrams.

Read More

How to implement simple TCP Client and Server Program in C?

This is a C Program that illustrates a simple TCP (Transmission Control Protocol) server that accepts incoming client connections. Once a client connection is established, a thread is spawned to read data from the client and echo it back (if the echo option is not disabled).

Read More

Brick Game – Game Developed in C++

This is the complete source code of the most favorite flash game ‘Web Breaker’. The source code is written completely in C/C++ programming language. The game runs in DOS graphics mode. You can use either Turbo C++ compiler or Dev C++ compiler to compile and run this code.

Read More

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 underlying layer does not change the protocol header so that when we submit the ICMP header nothing is changed so that the receiving end will see an ICMP packet. Additionally, we use the record route IP option to get a round trip path to the endpoint. Note that the size of the IP option header that records the route is limited to nine IP addresses.

Read More

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 files just to know more about functions and their parameters. Also it tells about different structures, enums defined in the file for specific purpose.

Read More

Beginning C++23
Kickstart your coding journey with Beginning C++23 – the ultimate guide to mastering the latest in modern C++ programming!
View on Amazon