Sudhir sharma has Published 1218 Articles

A Product Array Puzzle in C?

sudhir sharma

sudhir sharma

Updated on 03-Oct-2019 12:51:23

223 Views

An array is a container of elements of the same data types. In product array Puzzle, the product of all elements is found.In this Product Array Puzzle, we need to find the product of all elements of the array except element. The condition is that you cannot use the division ... Read More

Adding one to number represented as array of digits in C++?

sudhir sharma

sudhir sharma

Updated on 03-Oct-2019 12:48:57

192 Views

A number represented as array stored each digit of the number in a single element of the array. The length of the array is equal to the number of digits in the array i.e. length = 3 for four digit number. Each element of the array is a single digit ... Read More

C++ Interview questions based on constructors/ Destructors

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 10:36:22

817 Views

C++ interview questions on ConstructorsWhat is a constructor?A constructor is a function of a class that has the same name as the class. The constructor is called at the time of the initialization of object. There are three types of constructors −Default constructorParameterized constructorCopy constructorSyntaxclass cl_name{    cl_name(){     ... Read More

C++ Floating Point Manipulation

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 09:16:51

1K+ Views

Numerical implementation of a decimal number is a float point number. In C++ programming language the size of a float is 32 bits. And there are some floating point manipulation functions that work on floating-point numbers. Here we have introduced some of the floating-point manipulation functions.fmod()The fmod() function operating on ... Read More

C Program to find IP Address, Subnet Mask & Default Gateway

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 09:09:18

699 Views

C programming language can be used to find the details of the Internet connection of the system. Now, let’s learn about the basics terms that we need in this problem.IP Address − IP Address stands for Internet Protocol address. An IP address is a fixed numerical identification number that is ... Read More

C Program to find direction of growth of stack

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 09:07:16

307 Views

A stack is a data structure that stores elements. There are two operations on the stack. push that adds a new element to the stack. pop that removes an element from the stack.The stack can grow upward and downward according to the nature of the program that uses it. The ... Read More

C program to compare two files and report mismatches

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 09:04:22

7K+ Views

In the C programming language, the programmer can excess the files and read and write content in them.A file is a simple memory block that can store information, here we are concerned with text only.In this program, we will compare two files and report mismatches that occur. These files are ... Read More

C program that does not suspend when Ctrl+Z is pressed

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 09:01:13

1K+ Views

In Programing when a program malfunction and runs unusually in the terminal compiler the programmer has the power to explicitly stop the program from running. For explicitly stopping the program, the user must know the right keyboard shortcut that is needed to be pressed.To terminate the execution of a block ... Read More

C Program for Reversal algorithm for array rotation

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 08:58:33

2K+ Views

An algorithm is a set of instructions that are performed in order to solve the given problem. Here, we will discuss the reversal algorithm for array rotation and create a program for a reversal algorithm.Now, let's get to some terms that we need to know to solve this problem −Array ... Read More

Find the area of a circle in C programming.

sudhir sharma

sudhir sharma

Updated on 19-Sep-2019 08:53:05

12K+ Views

A circle is a closed figure. All the points of the circle are equidistant from a point that lies inside in circle. The point at the center is known as the center of the circle. The distance of points from the center is known as the radius.The area is the ... Read More

Advertisements