How to Return Multiple Values From a Function in C Using Pointers

In this example, we will learn how you can get two values from a function in C using pointers.

For this example, we're making a function of quadratic formula to return multiple values because the quadratic formula has two significant one positive and one negative.

In function, we can only get one value in the main method with the return, so for the second value we will use a pointer

return multiple value from function

How to Get Multiple Values From a Function Using Pointers


Comments

Popular posts from this blog

Pseudocode to Check, Number is Odd or Even

How to Create Marksheet in C