Answer Posted / suman halder
1.we can apply "call by reference" mechanism within the
function so that multiple values get returned..
2.if the return types are homogeneous..i.e if we wanna return more than one integer values or more than one characters or any other type,then we can use an array to do that job for us as C provides various ways to return array from a function ..
*** if u try to return more than one value at a time through return statement ,last value will be returned and
all other values are ignored..
e.g
return 10,20,30;
it will only return 30
so,the most convenient way to do this is to use "call by reference" mechanism..
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why c is a mother language?
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
What are pointers?
Is main an identifier in c?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What are reserved words with a programming language?
Explain what are the different file extensions involved when programming in c?
What are identifiers c?
What is string function in c?
What are high level languages like C and FORTRAN also known as?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Is there anything like an ifdef for typedefs?
What is a scope resolution operator in c?
Can main () be called recursively?
What are called c variables?