- 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
459 Views
Recursive Functions is the process of defining something in terms of itself. It is a function that calls itself again in the body of the function.A function fact ( ), that computes the factorial of an integer ‘N’ ,which is the product of all whole numbers from 1 to N.When ... Read More
Bhanu Priya
504 Views
Functions communicate among themselves with the help of arguments and return value.Farm of ‘C’ function is as follows −return-datatype function name (argument list){ local variable declarations; executable statements(s); return (expression); }For example, void mul (int x, int y){ int p; p=x*y; printf("product = %d”, ... Read More
Bhanu Priya
1K+ Views
A function is a self-contained block that carries out a specific well defined task.Advantages of functions in C language include −Reusability.The length of the program can be reduced.It is easy to locate and find any faulty function.It facilitates top-down modular programming.Top down design and structure chartsIt is a problem solving ... Read More
Bhanu Priya
665 Views
In C programming language, float is a short term for floating point.Floating point numbers are generally represented in the form of Institute of Electrical and Electronics Engineers (IEEE) format.The IEEE format uses a sign bit, a mantissa and an exponent for representing the power of 2.The sign bit denotes the ... Read More
Bhanu Priya
1K+ Views
ProblemFor given number try to find the range in which that number exists.SolutionHere, we are learning how to find the ranges of a number.The logic that we apply to find range is −lower= (n/10) * 10; /*the arithmetic operators work from left to right*/ upper = lower+10;ExplanationLet number n=45Lower=(42/10)*10 // ... Read More
Bhanu Priya
395 Views
ProblemWhat is the C program to obtain the sum of the first and last digit of the number, if a four-digit number is input through the keyboard?SolutionIn this program, we are taking a four-digit number at run time and trying to find the sum of first and last digit of ... Read More
Bhanu Priya
6K+ Views
Loop control statements are used to repeat set of statements. They are as follows −for loopwhile loopdo-while loopfor loopThe syntax is as follows −for (initialization ; condition ; increment / decrement){ body of the loop }Flow chartThe flow chart for loop is as follows −Initialization is usually an assignment ... Read More
Bhanu Priya
350 Views
ProblemHow the C compiler detect that the file was reached the end for while reading? Explain with a program.Solutionfeof() is a file handling function in C language, which is used to find end of a file.The logic we used for finding end of file is as follows −fp = fopen ... Read More
Bhanu Priya
2K+ Views
There are three ways by which the values of structure can be transferred from one function to another. They are as follows −Passing individual members as arguments to function.Passing entire structure as an argument to function.Passing the address of structure as an argument to function.Now let’s see how to pass ... Read More
Bhanu Priya
11K+ Views
Operator performs an operation on data. They are classified into following −Arithmetic operators.Relational operators.Logical operators.Assignment operators.Increment and decrement operators.Bitwise operators.Conditional operators.Special operators.Arithmetic operatorThese operators are used for numerical calculations (or) to perform arithmetic operations like addition, subtraction etc.OperatorDescriptionExamplea=20, b=10Output+Additiona+b20+1030-subtractiona-b20-1010*multiplicationa*b20*10200/Divisiona/b20/102(quotient)%Modular Divisiona%b20%100 (remainder)ProgramFollowing is the C program for arithmetic operator −#include ... Read More