Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   method of returning more than one value from a function (http://www.go4expert.com/forums/method-returning-value-function-t29092/)

ankitsjain 15Sep2012 23:54

method of returning more than one value from a function
 
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
:happy:

shabbir 16Sep2012 09:29

Re: method of returning more than one value from a function
 
Return Array of elements or even structure containing more than one element.

Rajesh M. Kanojia 13Dec2012 01:01

Re: method of returning more than one value from a function
 
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.


All times are GMT +5.5. The time now is 09:37.