What is prototype in c++ with example?
Answer / Sachin Kumar Chaubey
A prototype in C++ is a declaration of a function that provides information about its return type, name, and parameters. A prototype allows the compiler to check for syntax errors before the actual implementation of the function. An example of a prototype would be: void printHello(); This declares a function named 'printHello' that returns no value (void) and takes no arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many types of comments are there in c++?
Is c++ vector a linked list?
How does com provide language transparency?
Write any small program that will compile in "C" but not in "C++"?
What is & in c++ function?
Can a built-in function be recursive?
Define friend function.
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is meant by the term name mangling in c++?
Why use of template is better than a base class?
Which of the following operator cannot be overloaded?
What is setiosflags c++?