Can a function return more than 1 variable/structure/vector?
I am writing a function in which I am passing 3 vectors of different
(struct)datatypes 1 vector will contains some values and after performing
all the operations I am filling other two vectors with different sets of
data. So my question is Is it possible that function returns more than 1
variable/struct/vectors.
eg..
func_name(vect1,&vect2,&vect3) //function definition
{
// steps of performing some operations
// enter code here vect1 contains data, vect2 & vect3 are empty
// after performing operation vect2 & vect3 filled with different set of data
is it possible to return vect2 & vect3 simultaneously.
}
func_name(vect1,vect2,vect3) // function calling.
No comments:
Post a Comment