C++ Syntax Question:
Download Questions PDF

What is general format for a prototype?

Answer:

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.

Download Basic C++ Syntax Interview Questions And Answers PDF

Previous QuestionNext Question
What is prototype for that C string function?What is format for defining a structure?