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
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
Comments
Post a Comment