Nested if statement and nested loop
Answers
Answered by
3
nested if statement is an if statement which has an if statement in its if block and another if statement in its else block.
if (cond)
{
if (cond)
true statement
else
false statement
}
else
{
if (cond)
true statement
else
false statement
}
nested loop
when a loop is controlled within another loop it is called nested loop. the first loop is called external loop and the loop within the loop is called internal loop.
for(i=1;i<=5;i++)
{
for(j=0;j<=3;j++)
{
statement;
}
}
Answered by
0
Explanation:
nested loop join is a naive algorithm that joins two sets by using two nested loops. Join operations are important for database management
Similar questions