what is the use of using for loop as "for(;;)"?

Answer Posted / piyush

for gating infinite time looping use for(;;),second approach
same as while(true).

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

4583


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3286


Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: class PriorityQueue { int *Data[100]; int top; public: void put(int item, int priority); // inserts the item with the given priority. int get(int priority); // extract the element with the given priority. int count(); // returns the total elements in the priority queue. int isEmpty(); // check whether the priority queue is empty or not. }; We had to implement all these class functions.

4408


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4319


develop a program to calculate and print body mass index for 200 employees

2224






write a program to convert temperature from fa height into celcius and vise versa,use modular programming

2454


write a program that can LOCATE and INSERT elements in array using c++ programming languages.

3455


write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation

2411


3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...

4369


1+1/2!+1/3!+...+1/n!

1956


output for printf("printf");

1993


Code for Two Classes for Doing Gzip in Memory?

2818


write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n

2381


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2233


Write a simple encryption program using string function which apply the substitution method.

5546