answersLogoWhite

0

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.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Is missing statement an empty statement that does nothing?

empty statement does nothing, 'missing statement' is an error-message from the compiler, eg: { if (x==2) } corrected version: { if (x==2); }


What to do if it says Missing before statement line 2 file Code?

If it says Missing before statement line 2 file Code you just need to include ; before the statement.


What is and unexpected end of statement?

An "unexpected end of statement" error typically occurs in programming when the interpreter or compiler encounters an incomplete or improperly structured statement. This can happen due to missing punctuation, such as semicolons or parentheses, or when a code block is not properly closed. It's a common syntax error that indicates the code is not written according to the language's rules, and resolving it usually involves checking the surrounding code for correctness.


What does a loader do if it finds a reference to missing function or variable?

shows eror


What does missing return statement mean?

The compilation error occurred when a FUNCTION (a method that returns a thing, not the void-type) has at least one branch of codes does not return the required object in the correct type.It maybe confusing with some languages require to use the name of the Function as the "local" variable to be assigned with value, and hence establish the "return", while some languages, such as C# and Java, do not.---- C# ----public int My_Int_Function() {// DO NOT Use the commented statement// My_Int_Function = 1;// Instead, use a local variable that is NOT the same as the method namereturn 1; // never use the function name as the variable}

Related Questions

In the statement Calvin sold his which sentence component is missing?

. In the statement, "Calvin sold his", which sentence component is missing?


Is missing statement an empty statement that does nothing?

empty statement does nothing, 'missing statement' is an error-message from the compiler, eg: { if (x==2) } corrected version: { if (x==2); }


What to do if it says Missing before statement line 2 file Code?

If it says Missing before statement line 2 file Code you just need to include ; before the statement.


How do you say missing you in chakma language?

In Chakma language, you can say "Ngii sara sa" to express "missing you."


How can you find the missing term in a statement of proportion?

x3


How do you correct the C plus plus programming error missing function header?

You need to #include the header file that contains the missing function's declaration.


What is the impact of missing a depreciation journal entry o a financial statement?

Missing depreciation will increase the profit while reduce the expenses in the year in which depreciation is missing.


which statement is missing from the following proof theorem: vertical angles are congruent.?

A+


What is meaning of lack of infrastructure?

An infrastructure is either the physical structures needed for a society to function, or the services and facilities needed for an economy to function. So if the infrastructure is missing, that means that all the things that a society needs to function doesn't exist. For instance, there may be few roads, with vital roads and bridges missing, no communications services, lack of a means to clean the water to make it fit to drink, etc.


How do you find missing function values?

Meaningless question.


What is wrong with the flowing statement the man went the supermarket at 6am?

It is missing the word "to".


What is the missing letter in the word eluted?

No word in the english language