answersLogoWhite

0

Nothing, but be careful with the dangling else's:

if (cond1) if (cond2) stmt1; else stmt2;

means:

if (cond1) {

if (cond2) stmt1; else stmt2;

}

not this:

if (cond1) {

if (cond2) stmt1;

} else stmt2;

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Can include files be nested in c?

Yes, include files can be nested in C and C++. In fact, most library implementations do just that.


Can you have nested header files in C?

Yes.


What is nested class in c plus plus?

s.


What is the definition of 'nested' in C programming?

In C a structure within a structure is called nested. For example, you can embed a while loop in another while loop or for loop in a for loop or an if statement in another if statement.


In C which loop is embedded within another loop?

The nested loop.


What is nesting in C programming?

Nesting can be a very handy tool in C++, but should be avoided if possible.C++ gives us If statements, For loops and many other things. These can be nested. For example:A nested If statement://outer if statementIf( this is true ){//nested if statementif( this is also true ){//do something}else{//do something else}}


Syntax of nested if in c?

If(condition) { if-else statement; } else { if-else statement; }


What is the compound in c language?

compound c language is complicated where we need to use many nested functions and loops


Why doesn't C have nested functions?

Nested functions are used in some languages to enclose multiple functions and variables into a container so that individual function and variable are not seen from outside. In,C this can be done by putting such functions in a seperate source file.


All members of nested structures must be structure variables?

I don't really get your question, so I give you an example for nested structure:struct inner1 {int i;char c;};struct outer {int i;char c;struct inner1 n1;struct {int i;char c;} n2;};valid members for a 'struct outer' type variable are:.i, .c, .n1.i, .n1.c, .n2.i, .n2.c


What is nested logic?

In Nested Logic a Logic is contained within a Logic. If the Outer Logic is TRUE then the internal Logic is executed. Nested IF, Nested For, Nested While, e.t.c are some examples of Nested Logic in Modern Computer Languages.


When was Nested created?

Nested was created in 1977.