Sudhir sharma has Published 1149 Articles

The abs(), labs(), llabs() functions in C/C++

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 08:00:18

1K+ Views

What are Integer Functions in C Library?Integer functions are those functions which returns the exact value of an integer. C only supports integer values. In this function the nearest integer which is less than or equal to the argument returns to this function.Types of Integer functions −int = abs (int ... Read More

C++ Sum Array Puzzle

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:57:36

239 Views

Array is a data structure that stores multiple elements of the same data type. It can store entire set of values at once. But its length needs to be defined beforehand.In this sum array puzzle, we are given an array A1 of a definite size say n. In order to ... Read More

Write program to shutdown a system in C/C++

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:54:57

393 Views

A program to shutdown the system works on the operating systems like windows, linux or macOS. To shut it off and close all opened applications.What shut down or power off means?Shut down or Power off a computer means removing power from a computer's main components in an organised prescribed way ... Read More

C++ program to find the Area of the Largest Triangle inscribed in a Hexagon?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:52:34

267 Views

Find the area of largest Triangle inscribed in a hexagon we need to learn these figures are and how 1 is inscribed inside other.Triangle is a closed figure with 3 sides which may be equal or different size.Hexagon is a closed figure with 6 sides which may be equal or ... Read More

Angle between two Planes in 3D in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:30:39

280 Views

For learning about the angle between two planes in 3D, we need to learn about planes and angles.Plane is a two-dimensional surface that extends to infinity.Angle is the space in degrees between two lines and surfaces which intersect at a point.So, in this problem we need to find the angle ... Read More

BFS vs DFS for Binary Tree in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:26:55

10K+ Views

BFS (Breadth First Search) − It is a tree traversal algorithm that is also known as Level Order Tree Traversal. In this traversal we will traverse the tree row by row i.e. 1st row, then 2nd row, and so on.DFS (Depth First Search ) − It is a tree traversal ... Read More

Bellman Ford Algorithm in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:21:19

4K+ Views

Bellman Ford Algorithm is dynamic programming algorithm which is used to find the shortest path of any vertex computed from a vertex treated as starting vertex. this algorithm follows iterative method and continuously tries to find shortest Path. The Bellman Ford Algorithm on weighted graph.this algorithm was proposed by Alphonso ... Read More

Array sum after dividing numbers from previous in C?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:11:11

247 Views

Array is a sequence of elements of same data type. in this problem we are going to consider integer array for solving the problem. in this problem we are going to find sum of Elements found by dividing the element from the element proceeding it.Let’s take a few examples to ... Read More

C++ bitset interesting facts?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:08:49

298 Views

C++ programming language defines a container in c++ standard Template Library named as bitset. This bitset container is used in order to work on elements at the bit level i.e. each bit of the variable the bits i.e. binary conversion of the given value.1. Bitset is like an string − ... Read More

C++ bitset and its application ?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:05:35

532 Views

A bitset is a dataset that stores multiple boolean values but takes lesser memory space as compared to other data sets that can store a sequence of bits like a boolean array or boolean vector.Bitsets stores the binary bits in a form that takes less memory space, it stores them ... Read More

Advertisements