answersLogoWhite

0

Prototyping is done (at least in C/C++) to declare a function and tell the compiler how to use it before the int main(void) part of the program is run. The function is declared after main and is usually done as a style thing. example int function(int); int main(void) { int anumber = 1; x = function(anumber); return 0; } int function(int number) { //do something return number; } et cetera et cetera...

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Can you write a program without specifying the prototype of any function?

You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.


On compilation a program throws an error saying a 'function should have prototype' what is wrong with the program?

One or more functions don't have a prototype. These functions should be either: - made static - have a prototype somewhere in a header (which is included into the same file)


What are its program components?

the main() function,the#include Directive, the variable definition. function prototype, program statements, the function definition,program comments and braces are the components of program in C++


What is a synonym for prototype?

"paradigm, epitome, image." From Babylon, a computer program. More exactly, from WordNet 2.0.


What statements may appear anywhere you need them in a program?

Any statements may appear anywhere you need them in a program, provided those statements are within the scope of those locations. In modular programming, you must include the module that contains each statement's prototype wherever you intend to use those statements.


How do you build a LEGO m2 flamethower?

get a prototype injection molder, a pc, and a designing program then make the M2 flame thrower


Can you write a program without defining the function prototype?

Sure: int main (void) { puts ("Hello, world"); return 0; }


Which keyword is placed within the parenthesis of prototype and definitions if the function does not use arguments?

you can leave it blank or u can use void


Did japan have a nuclear weapons program?

A small one, aimed mostly at nuclear power. But it never even got a functioning prototype reactor.


What is a category prototype?

A category prototype is a member of a category which describes the category best. For example, robins are prototypical birds (i.e. robins are prototypes of the category 'birds'). Of course, this greatly depends on perception and cultural knowledge.


Within the Excel program window is another window referred to as the?

Within the excel program window is another window referred to as the?


How do you use prototype in a sentence?

Biology is a prototype or an example