answersLogoWhite

0


Best Answer

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

corrected version: { if (x==2); }

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is missing statement an empty statement that does nothing?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


In java what is empty statement.Explain its usefulness?

An empty statement in Java is just that: a statement with nothing in it. There are typically two ways to represent this:A single semicolon ;An empty block {}The usefulness of this type of statement is limited. The main use that I can think of is to fulfill the statement required for a loop structure.Here is an example that I recently used:while (sf(++n) != i);This loop will constantly call the method sf with increasing values of n until the return value of sf(n) is equal to i. Each loop in Java must have some code to execute in the loop body. In this case, all necessary work is done in the condition, and so the mandatory loop body is an empty statement.While there may be other (more clear) ways of writing this bit of code, this is an example of where that empty statement can be used.


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.


What is regular grammar of a switch in C programming language?

Perhaps you meant 'switch statement' instead of 'a switch'?Something like this: -> -> switch () -> { } -> (empty) | -> []; -> | -> case: | default: -> | break;


What is the use of the default case in a switch case?

The default case in a switch statement will be activated if none of the other case values match. It is used exactly for this purpose - if nothing else matches in the switch then this one will always match.Without a default case value, if nothing matched in the switch then nothing will be done. Sometimes it is necessary to know that nothing matched.

Related questions

Found is to missing as whole is to?

Type your answer here.. THE ANSWER IS EMPTY. newteEMPEMPTYst3


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

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


What is the empty set?

An empty set is one that contains nothing. It does not contain zero, but nothing.An empty set is one that contains nothing. It does not contain zero, but nothing.An empty set is one that contains nothing. It does not contain zero, but nothing.An empty set is one that contains nothing. It does not contain zero, but nothing.


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 does nothing mean the word ending ough?

nothing means basically a empty space or a empty void


In java what is empty statement.Explain its usefulness?

An empty statement in Java is just that: a statement with nothing in it. There are typically two ways to represent this:A single semicolon ;An empty block {}The usefulness of this type of statement is limited. The main use that I can think of is to fulfill the statement required for a loop structure.Here is an example that I recently used:while (sf(++n) != i);This loop will constantly call the method sf with increasing values of n until the return value of sf(n) is equal to i. Each loop in Java must have some code to execute in the loop body. In this case, all necessary work is done in the condition, and so the mandatory loop body is an empty statement.While there may be other (more clear) ways of writing this bit of code, this is an example of where that empty statement can be used.


How do you tell when a asthma inhaler is empty?

its empty. nothing comes out of it


Why empty set is open on the basis of def?

The empty set is open because the statement: "if x in A, some neighborhood of x is a subset of A" is true! If A is empty, the hypothesis: "if x in A" is false and so the statement is vacuously true.


What is containing nothing?

It is empty


What is called when somethng is empty with nothing inside?

When a vessel in empty on the inside meaning there is nothing inside the vessel it is called empty. Some other words are vacant or unoccupied and in reality it is just empty.


What does empty mean in math?

it is like (empty) zero or nothing at all


What is inside an empty bottle?

By definition, an empty bottle has nothing inside.