Friday, November 28, 2008

Point out the error if any

main() {
int i=1;
while()
{ printf("%d",i++);
if(i>10) break; }
}

a. The condtion in the while loop is must
b. There should be atleast a semicolon in the while()
c. The while loop should be replaced by the for loop
d. No Error

No comments: