- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Bhanu Priya has Published 1581 Articles
Bhanu Priya
537 Views
ProblemWrite a program to accept a one-dimensional array of N elements and split into two halves. Later on, sort the first half in an ascending order and the second half into descending order.SolutionThe solution to perform the two operations on two halves’ in a single array in C programming language ... Read More
Bhanu Priya
5K+ Views
ProblemFind the areas of rectangle, square, triangle, circle by using the switch case statement, User need to enter base, height, side, radius, breadth and length at runtime to calculate the areas of all geometrical figures.SolutionThe solution to find the areas of rectangle, square, triangle, circle by using the switch case ... Read More
Bhanu Priya
3K+ Views
ProblemCompute the value of xn , where x and n both are the inputs given by the user at runtimeSolutionThe solution to generate the value of x power n by using the recursive function in C programming language is as follows −The logic to find xn is mentioned below −//Calling ... Read More
Bhanu Priya
2K+ Views
The general form of the for statement is as follows −for (initialization; condition; operation) statement;Initialization is an assignment statement which is used to set the loop control variable.Condition is a relational expression that determines when the loop exits.The operation defines that how the loop variable changes each time when the ... Read More
Bhanu Priya
9K+ Views
The exit () function is used to break out of a loop. This function causes an immediate termination of the entire program done by the operation system.The general form of the exit() function is as follows −void exit (int code);The value of the code is returned to the calling process, ... Read More
Bhanu Priya
492 Views
Nested loops consist of one loop placed inside another loop.An example of a nested for loop is as follows −for (initialization; condition; operation){ for (initialization; condition; operation){ statement; } statement; }In this example, the inner loop runs through its full range of iterations for ... Read More
Bhanu Priya
890 Views
The use of printf is to print out a string with no blank fields to be filled.For example, printf ("An ordinary string.."); printf ("Testing 1, 2, 3...");The next simplest case that has been used before now is to print out a single integer number.int number = 48; printf ("%d", number);The ... Read More
Bhanu Priya
1K+ Views
Consider the examples given below to understand how to convert a decimal fraction to binary fraction in C programming language.Example 1 − Conversions of 25 to binary.Step 1 − 25 / 2 Rem : 1 , Quo : 12Step 2 − 12 / 2 Rem : 0 , Quo : ... Read More
Bhanu Priya
985 Views
ProblemImplement Euclid’ s algorithm to find the greatest common divisor (GCD) and least common multiple (LCM) of two integers and to output the results along with the given integers.SolutionThe solution to implement Euclid’ s algorithm to find the greatest common divisor (GCD) and least common multiple (LCM) of two integers ... Read More
Bhanu Priya
878 Views
An operator is used to describe an operation applied to one or several objects. It is mainly meaningful in expressions, but also in declarations. It is generally a short sequence using non-alphanumeric characters.A punctuator is used to separate or terminate a list of elements.C operators and punctuators are as follows ... Read More