What are the differences between the function prototype and the function defi-nition?



What are the differences between the function prototype and the function defi-nition?..

Answer / Sanjay Sharma

A function prototype declares the function's name, return type, parameters (if any), and argument types. It is declared before the function definition in the code. The function definition provides the implementation of the function, including the function body and logic. It should follow the prototype.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is encapsulation in c++?

2 Answers  


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1 Answers  


Is there a sort function in c++?

1 Answers  


Explain explicit container.

1 Answers  


How can you create a virtual copy constructor?

1 Answers  


What do you mean by delegate? Can a user retain delegates?

1 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


what is static function

2 Answers   Patni,


What is the oldest programming language?

1 Answers  


Can java be faster than c++?

1 Answers  


What are multiple inheritances (virtual inheritance)?

1 Answers  


Write a Program for find and replace a character in a string.

1 Answers  


Categories