#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

How can I manipulate strings of multibyte characters?

629


What is variable initialization and why is it important?

608


Can you please explain the difference between syntax vs logical error?

682


Can you tell me how to check whether a linked list is circular?

753


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

601






Can a program have two main functions?

561


Write a progarm to find the length of string using switch case?

1597


What is actual argument?

579


What is the Purpose of 'extern' keyword in a function declaration?

641


What are linker error?

606


What are the different types of control structures?

573


What are Macros? What are its advantages and disadvantages?

631


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2730


Where are the auto variables stored?

616


Is javascript based on c?

585