All Easy Articles

## GATE | GATE-CS-2007 | Question 85 2

In Ethernet when Manchester encoding is used, the bit rate is: (A) Half the baud rate. (B) Twice the baud rate. (C) Same as the… Read More »

## Bitwise Operators in C/C++ 2.7

In C, the following 6 operators are bitwise operators (work at bit-level) The & (bitwise AND) in C or C++ takes two numbers as operands… Read More »

## GATE | GATE CS 2008 | Question 85 2.6

Consider the following ER diagram. The minimum number of tables needed to represent M, N, P, R1, R2 is (A) 2 (B) 3 (C) 4… Read More »

## Print all nodes that don’t have sibling 2.1

Given a Binary Tree, print all nodes that don’t have a sibling (a sibling is a node that has same parent. In a Binary Tree,… Read More »

## GATE | GATE CS 2008 | Question 52 2

Match the following NFAs with the regular expressions they correspond to 1. ϵ + 0(01*1 + 00) * 01* 2. ϵ + 0(10 *1 +… Read More »

## Find if two rectangles overlap 2.2

Given two rectangles, find if the given two rectangles overlap or not. Note that a rectangle can be represented by two coordinates, top left and… Read More »

## Microsoft Interview | Set 26 2

Round 1: Questions about previous work, design patterns used in the previous work. Given two integers represented in Linked list format and now add these… Read More »

## Interesting Facts about Macros and Preprocessors in C 2.4

In a C program, all lines that start with # are processed by preprocessor which is a special program invoked by the compiler. In a… Read More »

## Analysis of Algorithm | Set 4 (Solving Recurrences) 2.8

In the previous post, we discussed analysis of loops. Many algorithms are recursive in nature. When we analyze them, we get a recurrence relation for time… Read More »

## Difference between pointer and array in C? 2.5

Pointers are used for storing address of dynamically allocated arrays and for arrays which are passed as arguments to functions. In other contexts, arrays and… Read More »

## Commonly Asked C Programming Interview Questions | Set 2 2.6

This post is second set of Commonly Asked C Programming Interview Questions | Set 1 What are main characteristics of C language? C is a… Read More »

## C | Advanced Pointer | Question 10 2.6

Output of following program filter_none edit close play_arrow link brightness_4 code #include <stdio.h> int fun(int arr[]) {    arr = arr+1;     printf(“%d “, arr[0]); } int… Read More »

## Operator Precedence and Associativity in C 2.4

Operator precedence determines which operator is performed first in an expression with more than one operators with different precedence. For example: Solve 10 + 20… Read More »

## Commonly Asked Operating Systems Interview Questions | Set 1 2.6

What is a process and process table? What are different states of process A process is an instance of program in execution. For example a… Read More »

## Interesting facts about switch statement in C 2.2

Prerequisite – Switch Statement in C Switch is a control statement that allows a value to change control of execution. filter_none edit close play_arrow link… Read More »

## C | Operators | Question 24 2.3

filter_none edit close play_arrow link brightness_4 code #include <stdio.h> int main() {    int x = 10;    int y = (x++, x++, x++);    printf(“%d %d\n”, x,… Read More »

## Amazon Interview | Set 60 (For Internship) 2.2

Believe me or not before I faced an Amazon interview round I was never sure whether all those gratitude that people usually present to GeeksforGeeks… Read More »

## GATE | GATE CS 2008 | Question 29 2.5

Let X be a random variable following normal distribution with mean +1 and variance 4. Let Y be another normal variable with mean -1 and… Read More »

## Python Program for Bubble Sort 2

Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order. Python filter_none edit close… Read More »

## How to restrict dynamic allocation of objects in C++? 2.4

C++ programming language allows both auto(or stack allocated) and dynamically allocated objects. In java & C#, all objects must be dynamically allocated using new. C++… Read More »