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 use of a conditional inclusion statement in C?

602


Explain 'bus error'?

562


Does * p ++ increment p or what it points to?

617


What is null in c?

599


With the help of using classes, write a program to add two numbers.

619






What do you understand by normalization of pointers?

627


What is the difference between c and python?

586


What is the scope of local variable in c?

578


Explain the Difference between the New and Malloc keyword.

688


How can I find out how much free space is available on disk?

629


What are the different file extensions involved when programming in C?

758


What are the scope of static variables?

601


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 "); }

1317


Explain the difference between exit() and _exit() function?

634


What is an auto variable in c?

758