Sudhir sharma has Published 1149 Articles

C/C++ Pointer Puzzle?

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 08:19:16

433 Views

A Pointer is a variable that stores the address of another variable. The data type of the pointer is the same as the data type as the variable.In this puzzle you need to know the size of the pointer that is being used. The puzzle checks our understanding of pointers ... Read More

C/C++ Function Call Puzzle?

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 08:14:43

233 Views

This C/C++ function call puzzle is a puzzle that is intended to explore more about the behaviour of method calling in both the programming languages C and C++/.The output of a method in C and C++ is different. Lets see what is the difference in calling methods in C and ... Read More

C++ Boolean Matrix

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 08:12:21

1K+ Views

Boolean matrix is a matrix that has only two elements 0 and 1. For this boolean Matrix question, we have a boolean matrix arr[m][n] of size mXn. And the condition to solve is, if m[i][j] = 1 then m[i] = 1 and m[j] = 1 which means all elements of ... Read More

C++ Adam Number

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 08:06:37

2K+ Views

Adam Number is a number whose square is reverse of the square of its reverse.Concept Explained − For a number to be adam number, the square of number is reverse of the square of the reverse of the number. Let’s take an example, 12 is the number. Square of 12 ... Read More

C++ program to Adding elements of an array until every element becomes greater than or equal to k

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 07:36:17

193 Views

We have array of unsorted element i.e. arr[] and have an integer K, and we have to find the minimum number of steps needed in which the elements of the array will be added to make all the elements greater than or equal to K. We can add two elements ... Read More

C program to check if a given string is Keyword or not?

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 07:28:38

13K+ Views

Keyword is a predefined or reserved word which is available in C++ library with a fixed meaning and used to perform an internal operation. C++ Language supports more than 64 keywords.Every Keyword exists in lower case letters like auto, break, case, const, continue, int etc.32 Keywords in C++ Language which ... Read More

Sum of the series 1.2.3 + 2.3.+ … + n(n+1)(n+2) in C

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 07:23:56

689 Views

Find the sum up to n terms of the series: 1.2.3 + 2.3.4 + … + n(n+1)(n+2). In this 1.2.3 represent the first term and 2.3.4 represent the second term.Let’s see an example to understand the concept better, Input: n = 5 Output: 420Explanation1.2.3 + 2.3.4 + 3.4.5 + 4.5.6 ... Read More

Biggest Square that can be inscribed within an Equilateral triangle in C?

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 07:19:35

145 Views

An inscribed planar shape or solid is one that is enclosed by and "fits snugly" inside another geometric shape or solid. To say that "square is inscribed in triangle" means precisely the same thing as "triangle is circumscribed about square".Biggest Square that can be inscribed within an Equilateral triangle −Biggest ... Read More

Biggest Reuleaux Triangle within A Square in C?

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 07:14:34

126 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the ... Read More

Biggest Reuleaux Triangle within a Square which is inscribed within a Circle in C?

sudhir sharma

sudhir sharma

Updated on 07-Oct-2019 07:12:03

165 Views

A Reuleaux triangle is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting ... Read More

Advertisements