C Language

How to use arithmetic operator with pointers

Pointer arithmetic in C programming

Sometimes we need to perform arithmetic operations on pointers. But before using arithmetic operators with pointers we need to understand that we can not use each arithmetic operators with pointers. Pointer arithmetic is slightly different from arithmetic we normally use in our daily life.   We also need to remember that we cannot use the

Pointer arithmetic in C programming Read More »

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 »