#include<stdio.h>
main()
{int i=1;j=1;
for(;;)
{if(i>5)
break;
else
j+=1;
printf("\n%d",j)
i+=j;
}
}

Answer Posted / ajay

error loop is incomplete

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

1848


What is string constants?

647


What is volatile, register definition in C

672


Why is this loop always executing once?

602


How would you rename a function in C?

602






When should structures be passed by values or by references?

564


What is the meaning of 2d in c?

592


How many levels of indirection in pointers can you have in a single declaration?

581


What is difference between class and structure?

555


Do pointers take up memory?

634


Can you apply link and association interchangeably?

659


What is void c?

551


What is the difference between malloc() and calloc() function in c language?

587


What are the application of c?

631


what is event driven software and what is procedural driven software?

1995