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
Do array subscripts always start with zero?
What is static volatile in c?
What are near, far and huge pointers?
What does s c mean on snapchat?
What is getch() function?
What are structure types in C?
Can we change the value of static variable in c?
What is the purpose of scanf() and printf() functions?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What is a char c?
What are the features of the c language?
Why is c platform dependent?
in linking some of os executables are linking name some of them
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above