what is the use of using for loop as "for(;;)"?
Answer Posted / arun n patil
for using first inisilization;second test counter;third
increment/decrement
int i;
syntax: for(i=0;i<=100;i++)
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
output for printf("printf");
write a program that creates a sequenced array of numbers starting with 1 and alternately add 1 and then 2 to create the text number in the series , as shown below. 1,33,4,6,7,9,............147,148,150 Then , using a binary search , searches the array 100 times using randomly generated targets in the range of 1 to 150
find level of following tree (state, parent) " J,D I,D H,C E,B F,B G,C B,A D,A C,A A,& K,E L,E L,F M,F N,G O,H P,I P,H Q,I R,J S,K U,P T,L
Code for Two Classes for Doing Gzip in Memory?
how to take time as input in the format (12:02:13) from user so that controls remains between these columns?
Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)
How to swap two ASCII numbers?
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
Write a simple encryption program using string function which apply the substitution method.
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.
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
Code for Easily Using Hash Table?