What will be the output-
for(i=1;i<=3;i++)
{
printf("%d",i);
continue;
i++;
}
Answer Posted / sakshi arora
The output will be : 123
bcozZ unreachable code is a warning in c , not a compilation error..
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
write a program using virtual function to find the transposing of a square matrix?
Code for Easily Using Hash Table?
1+1/2!+1/3!+...+1/n!
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 print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?
output for printf("printf");
Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.
how to take time as input in the format (12:02:13) from user so that controls remains between these columns?
write a program that reverses the input number of n.Formulate an equation to come up with the answer.
Implement a command console for changing settings on a particular object. The command console should allow you to enter a string and will return the response (very similar to a terminal session). The commands are as follows: SET propertyname=newvalue will change the target object’s member named “propertyname” to have a value equal to “newvalue”. If the input value is incompatible (i.e. an int being set to a string), print out an appropriate error message. GET propertyname will print out the current value of the target object’s member named “propertyname”. GET * will print out a list of all target object members and their current values. The system should be extensible for future commands and should accept an arbitrary object, such that another developer could insert another object into the system and rely on the command console to get and set the properties correctly.
develop a program to calculate and print body mass index for 200 employees
how to write a program that opens a file and display in reverse order?
solve the problem in the programming language C++"if a five digit number is input through the keyboard.Write a program to calculate the sum of its digits(hint: use the modulus operator)
how to diplay a external image of output on winxp by using c & c++,
write a program that can LOCATE and INSERT elements in array using c++ programming languages.