What are the advantages of prototyping?



What are the advantages of prototyping?..

Answer / Danish Husain

{"prototyping": "Prototyping in C++ provides several benefits:
1. Error detection and reduction before implementation: By creating a prototype, you can identify errors or issues with function arguments, return types, etc., early on, reducing the time spent on debugging.
2. Improved readability and maintainability: Prototypes make it easier for other programmers to understand the structure of your code and its intended functionality.
3. Faster compilation: Since the compiler only needs to check the prototype once rather than each function call, compiling can be faster.",
"prototype": "A prototype is a preliminary version or mock-up of a function declaration, usually created at the top of a C++ source file before defining the actual implementation."}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

in C++ , the word plus plus who found this?

4 Answers  


What are keywords in c++?

1 Answers  


Why is the function main() special?

1 Answers  


Explain the difference between 'operator new' and the 'new' operator?

1 Answers   Lucent, TCS,


What is the best it certification?

1 Answers  


Define private, protected and public access control.

1 Answers  


Which software is used for c++ programming?

1 Answers  


Const char *p , char const *p What is the difference between the above two?

1 Answers   TCS,


What things would you remember while making an interface?

1 Answers  


Is there any difference between dlearations int* x and int *x? If so tell me the difference?

16 Answers   Lason,


What is lazy initialization in c++?

1 Answers  


Comment on c++ standard exceptions?

1 Answers  


Categories