Rate this paper
  • Currently rating
  • 1
  • 2
  • 3
  • 4
  • 5
4.00 / 3
views 1385 | downloads 811
Paper Topic:

Week 4 DQ 2-3

Week 4 DQ 2-3 (Student Name

Course Name

Faculty Name

Date

What do you feel is the best thing about functions ? What do you like most about functions ? What is your favorite conditional statement ? Why

The best thing about function is that by use of it we can structure our programs in a more modular way . In C a function prototype (All functions in C must be prototyped ) is a declaration that defines the argument passed to the function and the type of value returned by the function

The

C compiler uses prototype to ensure that the types of the arguments one pass in a function call are same as those mentioned in the prototype , known as strong type checking , which C programming languages lacks . This is what I like most about the functions

My favorite conditional statement is if /else statement . Because it gives different options for certain code execution , depending upon the expression is true or false . Also the if-else statement lets one to write program with more readability

if

else if

else

Summarize the article and answer the following question on Becker 's (2006 ) article , what is the purpose of function overloading

Function overloading is a way that gives facility for having multiple functions with the same name . The purpose of overloading is to define several closely related versions of a procedure /function without having to differentiate them by name just only varying the argument list . It provides a common name for several similar but slightly divergent functions

Becker 's article Overloading and Overloading ' is primarily of about solving C /C problems . This describes the use of overloading functions in technical and non technical sense . Initially the use of operator overloading is discussed in C and also discussion of it in Java which do not have this . After that function overloading is described , this is the same name for different function by differentiating with the argument type . In addition , overloading of functions , which is essential for templates is also covered with examples . Also problem with overloading is covered in last section because overusing function overloading can make a program unreadable Another problem arises from an interaction between templates and overloaded functions because of complier do not understand it . In conclusion , the article describes that overloading is not a blessing , it makes program unreadable when overused . Overloading function can even bog down the compiler therefore it should be used , when it is really necessary in program

Summarize the following article : Object-Oriented Programming

This gives a look on API (application programming interface ) and object oriented programming (OOP . It had also given definitions of different object oriented terms such as object , class and instances . The seeds of object-oriented programming might be traced back to the concept of the API . API is basically a piece of that defines a set of subroutines and the behavior an application can expect to get when calling them . The downside to APIs is that one can only have one of something . Suppose...

3 pages
38.0 KB
Free sing-up

Not the Essay You're looking for? Get a custom essay (only for $12.99)