Searching for "prototyping"

Q:

What is function prototyping? What are its advantages?

Answer

Function prototyping is a function declaration statement that tells the compiler about the return type of the function and the number as well as type of arguments required by the function at the time of calling it.


Syntax:


return_type function_name( type1 arg1, type 2 arg2, ... );


 


Advantages of function prototype :


- It helps the compiler in determining whether a function is called correctly or not. Each time when a function is called, its calling statement is compared with its prototype. In case of any mismatch, compiler reports an error.


- A function must be defined before calling it. But prototyping allows a function to be called before defining it.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

Q:

What key approaches are supported by the SAP Solution Manager in the implementation phase?

A. Phase-driven implementation approach.

B. Process-oriented implementation approach.

C. Reengineering-driven implementation approach.

D. Prototyping as implementation concept.

Answer

Answer : B

Report Error

View answer Workspace Report Error Discuss