Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I return multiple values from a function?

Answer Posted / vignesh1988i

we can indirectly return multiple values from a function through pointers......

what ever you make the alterations in the sub-routine since pointers refer to address the value will be directly gets changed in the actual address

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set file pointer to beginning c?

1203


What is the heap in c?

1085


What is the general form of a C program?

1031


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

1162


What is the argument of a function in c?

1053


What is c system32 taskhostw exe?

1028


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1768


Explain is it better to bitshift a value than to multiply by 2?

1204


What are the preprocessor categories?

1065


Where we use clrscr in c?

1141


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1123


What is a #include preprocessor?

1156


Is a pointer a kind of array?

1186


What are enums in c?

1208


What does void main () mean?

1240