answersLogoWhite

0

Yes, the minimum is the following:

int main (void) { return 0; }

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the name of the function which must be defined in a Java program?

The main function. Every program must have a main function and it must be declared static.


What function does every C program have Why should you split large programs into several functions?

Every C program has a main() function.


What must every c program have?

A main function must be present in every C program.


How do you write rule for a function?

You can write them any way you like, as long as the basic definition of "function" is maintained. Basically, this means that the function must be defined uniquely defined for every input.


Is the main function in C a built-in function or user-defined function?

The main function in C is user-defined. Built-in functions are simply those that do not require a library to be included, but every program must provide a user-defined point of entry; it cannot be built-in. Indeed, most functions in C are user-defined; the built-in functions are mostly operators rather than functions although most do behave like functions. The standard library functions are not built-in either; they all require the inclusion of the appropriate standard library header.


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Why doesnt the graph of a function have two different points with the same x coordinate?

That's how "function" is defined. If you have two points with the same x-coordinates, you have a "relation", but not a "function". A function is a special type of relation. The idea of a function is that, for every value of the independent variable (for example, "x"), the dependent variable (for example, "y") is uniquely defined. In other words, you can consider a function as a rule that assigns a y-value uniquely to every x-value.


What is the meaning of statement missing in function main in c language?

Every C program must have a function, named main(), which is where the program starts execution. If there is no function main(), the computer does not know where to start running the program. The function main() must also do something; if it is just empty, some smarter compilers will note that there is nothing for the program to do, and will give this sort of error message to indicate that you forgot to tell the program what to do.


How do you find f x plus 5?

The result depends on how the function f() is defined. Simply copy the function definition, replacing every "x" (assuming the function is defined in terms of "x") by "x+5".


Why sine cannot measure angle larger than 45?

It can. The sine function is defined for all numbers--negative, 0, and positive. The function is periodic and repeats every 360 degrees.


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.


How do we know that the input have one output or more in a function in math?

By definition. If one input has more than one outputs then it is not a function.