Stop and Wait Protocol

In this article, we will take a look at the Stop and Wait protocol of a computer networking system. In order to understand the mechanism of this protocol, we will first have a brief understanding of the error control mechanism. The Stop and Wait Protocol is a sub-category of the error control mechanism. The error …

Stop and Wait Protocol Read More »

Interpolation Search Algorithm – Time Complexity, Implementation in Java

In this article we will have a look at an interesting Searching Algorithm: Interpolation Search. We will also look at some examples and the implementation. Along with this we look at complexity analysis of the algorithm and its advantage over other searching algorithms. Interpolation Search is a modified or rather an improved variant of Binary …

Interpolation Search Algorithm – Time Complexity, Implementation in Java Read More »

Object Pascal – 26 Things You Didn’t Know About

Nearly all software developers of a certain generation learned to program with a version of the Pascal programming language. Niklaus Wirth designed the Pascal language with the intention of encouraging good programming practices using structured programming and data structuring. This made it perfect for teaching programming. Pascal has come a long way since it was …

Object Pascal – 26 Things You Didn’t Know About Read More »

C++ Global Variable with Examples

Global variables are described at the top of a program, outside of all functions. The value of a global variable remains constant throughout the execution of the program. Every function that is declared in the program, can access the global variable. #include<iostream> using namespace std; //global variable int a = 5; void display() { cout<<a<<endl; …

C++ Global Variable with Examples Read More »

fgets() vs scanf() in C

In this article, we will take a look at two of the most basic functions used in the C language and subsequently, we will compare them on the basis of their usage. Both fgets and scanf functions are used to take basic user inputs in the program. The major difference between these two functions is …

fgets() vs scanf() in C Read More »