What are the criteria on creating functions


Discussion:

Program code can be organized through the use of functions. What are the criteria on creating functions? For example, do you limit the function to a certain number of lines of code, to a set of common function?

The C/C++ language has two different types of conditional statements (if-else and switch-case). What do you see as the benefits and drawbacks of each conditional statement and when and why would you use one over the other?

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What are the criteria on creating functions
Reference No:- TGS01937521

Now Priced at $20 (50% Discount)

Recommended (99%)

Rated (4.3/5)