Answers

Question and Answer:

  Home  Basic C++ Syntax

⟩ What is general format for a prototype?

The general format for a prototype is simple:

return-type function_name ( arg_type arg1, ..., arg_type argN );

arg_type just means the type for each argument -- for instance, an int, a float, or a char. It's exactly the same thing as what you would put if you were declaring a variable.

 190 views

More Questions for you: