Computer Science, asked by chitrabi, 1 day ago

Which of the following ‘for loop’ structure is wrong?
a. for(num=10;num<20;)
{
Statements;
num++;
}
b. int num=10;
for (;num<20;)
{
Statements;
num++;
}
c. int num=10;
for (;num<20;num++)
{
Statements;
}

Answers

Answered by omkarperavi2001
1

Answer:

c is the wrong statement

Explanation:

plz Mark as branilwas

Answered by sahunix
0

a is wrong

Reason: num is not defined to which datatype it belongs...

Correct answer:

for (int num=10;num<20;)

{

Statements;

num++;

}

Similar questions