What will be the output-
for(i=1;i<=3;i++)
{
printf("%d",i);
continue;
i++;
}
Answer Posted / mehtaashish
It will results in a compile time error, stating that
unreachable code for the second increment statement(i++) after
continue statement.
Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
Performance Algorithm A performs 10n2 basic operations and algorithm B performs 300 lg n basic operations. For what value of n does algorithm B start to show its better performance?
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!!!)
develop a program to calculate and print body mass index for 200 employees
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
i really need help about this.. write a program to display the set of odd and even numbers separately. find the highest and lowest value of the given numbers.
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
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
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
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 can I Draw an ellipse in 3d space and color it by using graph3d?
Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.
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
Code for Method of Handling Factorials of Any Size?
write a program using virtual function to find the transposing of a square matrix?