answersLogoWhite

0

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.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can you write a program without defining the function prototype?

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


What is prototype in C language?

A prototype in C is the declaration of a function. Without a prototype, the function cannot be called because the compiler would have no way of knowing if the function was being called correctly. Prototypes may appear in multiple translation units but can only be defined once. A definition is itself a prototype.


What is difference function prototype and function define in turbo c?

In C, a function prototype is a declaration to the compiler that a certain function exists, without a full definition. This allows other functions to call that function. The linker will later make sure that a function definition actually exists (perhaps somewhere else), and will turn the call to the function to a call to the correct function.


Can we execute java program without main function?

no


Can I patent an idea without a prototype"?

No, you cannot patent an idea without a prototype. A prototype is typically required to demonstrate the functionality and feasibility of the idea in order to obtain a patent.


How did Americans win?

Without specifying what they won, it is impossible to answer.


Write a program in C without any functions?

It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()


What is the importance of using functions in a c program?

C programs do not function without functions.


A c program to call a function without using function name?

It can be done via its address, for example: void function (void (*callback)(void)) { (*callback)(); }


Write a Program to convert decimal number into hexadecimal no without using function and string?

This is not a question.


Can you write a program without using any semicolon inside the main function?

not possible dude


How can you find a program in Windows 7 without browsing through the program list in the Start Menu?

Use the 'search' function in the Start menu.