answersLogoWhite

0

What is meant by 'else without if '?

Updated: 12/21/2022
User Avatar

Wiki User

15y ago

Best Answer

I'm guessing that this showed up as part of a compilation error. What it means is that it found an "else" statement without an "if" statement preceding it.

{

// this is the normal form of an if-else block

if(a==b) {

;

}else {

;

}

// this causes an "else without if" error

else {

;

}

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by 'else without if '?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why is a table created in database?

Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.Tables are central to a database. A table stores the data. Everything else in the database, such as queries, forms and reports, use the data from the table. Without tables, a database is useless as it would have no data.


What is meant by grating spectrum?

what is meant by grating


What is meant by histerisis?

what is meant by histerisis in terms of Elctrical Machines?


What accurately describes the grammar of a conditional-statement in c plus plus?

if (conditional_statement) {//Code to execute if true}if (conditional_statement) {//Code to execute if true} else {//Code to execute if false}if (conditional_statement) {//Code to execute if true} else if (another_conditional_statement) {//Code to execute of the second conditional statement is true} else {//Code to execute if neither statement is true}There are a few things to note about if statements that might be helpful:You can have as many 'else if' declarations in an 'if' statement as you want (These are called stacked if's)You can specify an if statement without the curly braces ('{' and '}') if there is only one line of code. For example: if (x > 10) x = 0;This will set x back to 0 if it is greater than 10, just like a normal 'if' statement but without the curly braces.As a result of this, 'else if', to the compiler, is not special at all. An 'if/else-if/else' statement is actually just two 'if/else' statements stacked on top of one another, where the 'else' doesn't have curly braces (hence the term "stacked if statement"). To demonstrate, the following two if statements are actually interpreted exactly the same by the compiler:if (x -10) {x = 0;} else {x++; //Increment x;}}


How long can you store cement in a silo without using it?

If you mean the powder - you can store it indefinitely in a moisture-free environment. If you meant the mixed concrete - it starts to set in about an hour, so it's mixed 'as an when required'

Related questions

Can she say no when she meant yes?

Yes She can but as far as you or any one else is concerned she meant no.


What are cackatials?

First of all, if you meant cockatails, then there birds, if you meant anything else, then I don't know.


What is meant by without financial responsibility?

You spend your money without thought


How do you know you are a cheerleader?

You know you are a cheerleader when you have a passion for it. You love to practice, you think you have no purpose without it. If someone else tells you to try out, you probably aren't one. Only you can know if you're meant to be a cheerleader.


Oblivion where to get the bruma sword?

there is no such thing. perhaps you meant something else.


How can you use Facebook without other users knowing?

You can simply stay offline on the chat screen thingy and no one will know that you're currently online...unless you meant something else this is the only way...


What do you think Woodrow meant by peace without victory?

Peace without victory meant peace without going to war. Thus, you didn't need to have a victory. This method proved very effective.


Can you use the cortizone cream for something else other than what it is meant for?

You should not use cortizone cream for something else other that what it is meant for. This is because it has an active steroid ingredient and may cause side-effects.


Should you expand travel into space?

Of course. What else was the human race meant for?


What does barter mean in Roman Empire?

In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.In the Roman empire barter meant the same as it means today--an even trade without the use of money.


Is there any cheats hacks or codes you can use in MW2 without buying anything stuff like infinite health on live?

Nope, online everything is meant to be the same as everyone else's progress...No cheats online


Are secrets meant to be told?

No, that's why it's a secret. Secrets are not meant to be seen or known by anybody else besides you & the person/people who told you.