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

What is the purpose of the preprocessor directive error?

676


Explain what is the concatenation operator?

622


What is difference between array and structure in c?

573


What is the function of multilevel pointer in c?

668


Explain the difference between #include "..." And #include <...> In c?

623






What is an array in c?

591


Can we declare function inside main?

562


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1455


Why main is used in c?

583


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1778


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

601


Difference between strcpy() and memcpy() function?

673


In c language can we compile a program without main() function?

573


Do pointers store the address of value or the actual value of a variable?

606


Why can't I perform arithmetic on a void* pointer?

635