method of returning more than one value from a function

ankitsjain's Avatar, Join Date: Sep 2012
Newbie Member
telll me the methode by which we can return more than one value at a time from a given function???
please give me ans as soone as possible
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Return Array of elements or even structure containing more than one element.
ankitsjain like this
Rajesh M. Kanojia's Avatar, Join Date: Dec 2012
Go4Expert Member
u should use pointer.
because return keyword return only one value at a time but using pointer u can directly access the no. of value not only accessing but also can modify.