C Language

socket programming in c

Socket programming in c using TCP/IP

Before you start learning socket programming in C, you should basic knowledge of IP addresses, TCP, and UDP. In this article, I shall describe TCP/IP and write a socket program using the TCP/IP API. TCP (Transmission control protocol) A TCP (transmission control protocol) is a connection-oriented communication. It is an intermediate layer of the application […]

Socket programming in c using TCP/IP Read More »

search an element in a linked list

C Program to Search an element in a Linked List using Iterative and Recursive

In this article, we will learn how to search an element in a linked-list. It is a very simple program that is generally asked in the interview. For example: Linked List: 13–>19–>20–>22–>11–>NULL Enter Element: 20 Result: Element Found Linked List: 14–>22–>10–>2–>7–>NULL Enter Element: 3 Result: Element Not Found   Here we will see two methods

C Program to Search an element in a Linked List using Iterative and Recursive Read More »

Generic Linked List in C

Generic Linked List in C

In C language, we can also create a generic linked list using the void pointer. Generic linked list means that it can store any data type as per the requirements. The most important thing about the void pointer, it can store the address of any data type. Means that the programmer can store the address

Generic Linked List in C Read More »

Delete a Linked List node

Delete a Linked List node

In my previous article, I have discussed the introduction of linked list and linked list insertion. In this article, we will see how to delete a node from the existing linked list. Delete a Node: There are three ways to delete a node from the linked list. It depends on the user requirements. Delete a

Delete a Linked List node Read More »

Linked List Insertion

Linked List Insertion

In my previous article, I explained the basic concepts of a linked list along with its advantages and disadvantages. In this article, I will show you how to insert a new node into an existing linked list. Earlier, I shared an example where I created a linked list with four nodes. While that example was

Linked List Insertion Read More »