shelbyanderson6152 shelbyanderson6152
  • 31-01-2024
  • Computers and Technology
contestada

In the following 'C' program, find out the error in the 'while' loop, if any?
main( )
{
int i = 1;
while( )
{
printf("%d", i++) ;
if (i>10)
break;
}
}
a. The while loop should be replaced by for loop
b. No error
c. There should be at least a semicolon in the while ()
d. The connection in the while loop is a must

Respuesta :

Otras preguntas

Two blocks of masses m and M are connected by a string and pass over a frictionless pulley. Mass m hangs vertically, and mass M moves on an inclined plane that
At a toy store the children's department has bicycles and tricycles. There are 20 wheels on a group of bicycles each bike has 2 wheels how many bikes are there
Calculate the mass, in grams, of Avogadro's number of fluorine atoms. Enter your answer in the provided box. I g/mol
The begginga of the massai
5x - 19 < 1 OR -4 + 3 < -6
the height of a box is 7 the length is three inches more than the width find the volume is 126
How did the planets of our solar system form?
Which of these number is a common factor of 24 and 56
Someone please answer
?7.) Which of the following would accurately complete this diagram? A.) The monastic movement B.) The papacy of Gregory 1 C.) The Eastern Orthodox Church D.) T