Can we return multiple values from a function 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Oxford, Lives in Oxford, UK.
We all know that a function in C can return only one value. ... If we want the function to return multiple values of same data types, we could return the pointer to array of that data types. We can also make the function return multiple values by using the arguments of the function.
2023-05-11 05:47:16
评论(499)
Helpful(122)
Helpful
Helpful(2)

Zoe Mitchell
QuesHub.com delivers expert answers and knowledge to you.
We all know that a function in C can return only one value. ... If we want the function to return multiple values of same data types, we could return the pointer to array of that data types. We can also make the function return multiple values by using the arguments of the function.