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 collection of communication lines and routers called?

615


What is const keyword in c?

753


Do string constants represent numerical values?

930


How to write a code for reverse of string without using string functions?

1583


Is main an identifier in c?

607






How can you convert integers to binary or hexadecimal?

622


What Is The Difference Between Null And Void Pointer?

649


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1484


List some applications of c programming language?

560


What is a stream water?

662


#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }

724


What does it mean when the linker says that _end is undefined?

638


What is the use of extern in c?

651


What are two dimensional arrays alternatively called as?

667


What is the data segment that is followed by c?

617