C – Types of Pointers

In this tutorial we will learn about Null Pointer, Void Pointer, Wild Pointer and more. If you want to know more on Pointers, click the link given below. Pointers in C There are eight different types of pointers, some of which we will learn here: Null pointer Void pointer Wild pointer Dangling pointer Complex pointer … Read more

C – Passing Pointers to Functions

In C programming, just like we pass values of the variable as parameters in the function, we can also pass addresses as an argument in functions. When we pass pointers in the function that means we pass the address of the variable instead of the value. Syntax: Let us see some examples. 1. Pass Addresses … Read more

C – Pointer Arithmetic

In this tutorial, we will learn about the various operation that can be performed on Pointers. But before that if you do not know about the Pointer click the link below. Pointers in C Operators in C As the operation can be performed on numeric value and pointer is an address which is an numeric … Read more

C – Pointers

In programming, there are various tasks that can be achieved easily with the use of pointers such as dynamic memory allocation that needs pointers to perform. It is important to learn pointers for the programmer because it minimizes the execution time and saves memory space. Before we jump into the Pointers let us understand a … Read more

C – Recursion

Recursion refers to the process when a function calls itself inside that function directly or indirectly or in a cycle. And such functions are called recursive functions. However, the crucial part is the termination condition that is given to the recursive function because it might go into an infinite loop. If the termination is not … Read more

C Program to Find Quadrant of a given Co-Ordinate

Questions:Write a C program to accept a coordinate point in an XY coordinate system and determine in which quadrant the coordinate point lies. A Cartesian coordinate system specifies each point uniquely in a plane by a pair of numerical coordinates.There are 4 quadrants in a cartesian coordinate system. If x, y values are 0,0 then … Read more

Factorial Program in C using Function

In this example, we will calculate the factorial of a number taking the value from the user in C. Before we begin, you should have the knowledge of the following in C Programming: Factorial of n number: Factorial of n number is the product of all the positive descending integers and is denoted by n!.Example: … Read more

C Program for Simultaneous Equations

In this tutorial, the program finds out the solutions to the simultaneous equations in two variables. The Linear equations are present in the following form: ax+by=c px+qy=r The co-efficient (a, b, c, p, q, r) are taken as an input from the user for the two equations. C Program to solve Simultaneous Linear Equations in … Read more

C Program to Find Roots of a Quadratic Equation

Quadratic equations are the polynomial equation having a degree 2. For a quadratic equation ax2+ bx + c = 0, (a≠0) and the discriminant (D = b2-4ac) decides the nature of roots. There are three possibilities of discriminant and those are: In order to understand the program, you need to have the knowledge of the … Read more