method of returning more than one value from a function

Newbie Member
15Sep2012,23:54   #1
ankitsjain's Avatar
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
Go4Expert Founder
16Sep2012,09:29   #2
shabbir's Avatar
Return Array of elements or even structure containing more than one element.
ankitsjain like this
Go4Expert Member
13Dec2012,01:01   #3
Rajesh M. Kanojia's Avatar
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.