## Constructors in C++

What is constructor? A constructor is a member function of a class which initializes objects of a class. In C++, Constructor is automatically called when… Read More »

## Flipkart Interview | Set 7 (For SDE II)

Online Coding round Find all the Node at the distance K from a given node in a Binary tree. Print them in any order. Design… Read More »

## Program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n

If inverse of a sequence follows rule of an A.P i.e, Arithmetic progression, then it is said to be in Harmonic Progression.In general, the terms… Read More »

## C Program to print Floyd’s triangle

Floyd’s triangle is a triangle with first natural numbers. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Recommended:… Read More »

## Program to print first n Fibonacci Numbers | Set 1

Following is simple program to print first n Fibonacci numbers. Examples : Input : n = 3 Output : 1 1 2 Input : n… Read More »

## Python Program for Program to find area of a circle

Area of a circle can simply be evaluated using following formula. Area = pi * r2 where r is radius of circle Python3 filter_none edit… Read More »

## Java Program for Program to find area of a circle

Area of a circle can simply be evaluated using following formula. Area = pi * r2 where r is radius of circle Java filter_none edit… Read More »

## C Program for Program to find area of a circle

Area of a circle can simply be evaluated using following formula. Area = pi * r2 where r is radius of circle filter_none edit close… Read More »

## Program to find area of a circle

Area of a circle can simply be evaluated using following formula. Area = pi * r2 where r is radius of circle Recommended: Please solve… Read More »

## Program to find area of a triangle

Finding area using given sides: Examples : Input : a = 5, b = 7, c = 8 Output : Area of a triangle is… Read More »

## C program to copy contents of one file to another file

filter_none edit close play_arrow link brightness_4 code #include <stdio.h> #include <stdlib.h> // For exit()    int main() {     FILE *fptr1, *fptr2;     char filename, c;   … Read More »

## C Program to print contents of file

fopen() is used to open and fclose() is used to close a file in C filter_none edit close play_arrow link brightness_4 code #include <stdio.h> #include… Read More »

## Program to check if two given matrices are identical

The below program checks if two square matrices of size 4*4 are identical or not.For any two matrix to be equal, number of rows and… Read More »

## Recursive program to linearly search an element in a given array

Given an unsorted array and an element x, search x in given array. Write recursive C code for this. If element is not present, return… Read More »

## Commonly Asked Data Structure Interview Questions | Set 1

What is a Data Structure? A data structure is a way of organizing the data so that the data can be used efficiently. Different kinds… Read More »