Sudhir sharma has Published 1218 Articles

C Preprocessors?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 07:28:48

129 Views

C programming language supports preprocessors for efficient working of its program. C Preprocessor is a macro preprocessor for C based programming language. A preprocessor gives the compiler an ability for including header files, macro expansions, conditional compilation and line control in an explicit way.The # hash tag is used to ... Read More

BFS vs DFS for Binary Tree in C++?

sudhir sharma

sudhir sharma

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

8K+ 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

3K+ 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

161 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

200 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

376 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

A matrix probability question in C?

sudhir sharma

sudhir sharma

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

99 Views

The matrix probability question Calculates the probability that whether an element will be inside the given matrix after taking N steps and any direction. This means we need to find what is the probability of an element not going out of the scope of the matrix even after moving N ... Read More

_Generic keyword in C ? 1: 20

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 06:59:01

716 Views

_Generic keyword in C is used to define MACRO for different data types. This new keyword was added to the C programming language in C11 standard release. the _Generic keyword is used to help the programmer use the MACRO in a more efficient way.this keyword translate the MACRO based on ... Read More

New ways to Assign values to Variables in C++ 17 ?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 06:56:08

324 Views

In C++ 17, there are introduced two new ways by which a programmer can assign values to a variable or declared them. In this update, elser then the classical way of assigning values to a variable the following two ways to initialise values.Classical methodInitially the assignment operator ‘=’ is used ... Read More

Adapter Pattern in C++?

sudhir sharma

sudhir sharma

Updated on 04-Oct-2019 06:51:58

195 Views

An adapter pattern is used to convert the interface of a class into an interface that is expected by the client. An adapter helps the programmer to make its classes work together and make sure the user requirement is fulfilled by making incompatible interfaces completable.let's understand a bit more about ... Read More

Advertisements