How can I return multiple values from a function?

Answer Posted / shruti

use of pointers.
call by refrance.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I remove the leading spaces from a string?

638


Describe the header file and its usage in c programming?

622


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1016


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1415


how is the examination pattern?

1599






What’s a signal? Explain what do I use signals for?

612


Explain how can type-insensitive macros be created?

572


Can we compile a program without main() function?

637


How can I dynamically allocate arrays?

597


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1850


What are the different types of data structures in c?

610


What is a constant?

637


How can I read in an object file and jump to locations in it?

583


Tell me with an example the self-referential structure?

568


What is assert and when would I use it?

583