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
1
Answer:
c is the wrong statement
Explanation:
plz Mark as branilwas
Answered by
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
English,
22 hours ago
English,
22 hours ago
Social Sciences,
1 day ago
Music,
8 months ago
Science,
8 months ago