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 built-in function?

593


What is wrong with this program statement? void = 10;

821


Explain that why C is procedural?

659


What are the storage classes in C?

625


What is a sequential access file?

648






When can you use a pointer with a function?

568


What are register variables? What are the advantage of using register variables?

687


What's a good way to check for "close enough" floating-point equality?

628


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

672


Explain how can you tell whether a program was compiled using c versus c++?

578


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

721


What is fflush() function?

644


Is c still used?

604


Write a program to swap two numbers without using a temporary variable?

611


The statement, int(*x[]) () what does in indicate?

647