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

Differentiate call by value and call by reference?

571


What is I ++ in c programming?

630


How can you avoid including a header more than once?

568


Is it acceptable to declare/define a variable in a c header?

688


How can you convert integers to binary or hexadecimal?

622






What are the different data types in C?

731


What are qualifiers and modifiers c?

552


What is #line used for?

584


What does printf does?

753


What is the use of typedef in c?

593


how to create duplicate link list using C???

2079


What is property type c?

609


What is the significance of an algorithm to C programming?

598


Do character constants represent numerical values?

848


What are global variables and how do you declare them?

623