How can I return multiple values from a function?

Answer Posted / kr swamy naidu

make finction return type as a structure or array so that you can return multiple values

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are run-time errors?

605


Write a program to reverse a string.

631


Why we use break in c?

544


What are data structures in c and how to use them?

669


Can a variable be both const and volatile?

669






What is 02d in c?

634


What are external variables in c?

543


How many main () function we can have in a project?

608


What is a global variable in c?

587


what are the 10 different models of writing an addition program in C language?

1434


What is %s and %d in c?

586


Is it better to bitshift a value than to multiply by 2?

654


How do shell structures work?

563


How the c program is executed?

628


Explain how do you determine a file’s attributes?

588