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


Please Help Members By Posting Answers For Below Questions

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

4316


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?

7354


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!!!)

3282


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

2222


A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect

2412






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.

1978


Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?

2569


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

2020


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

2752


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.)

4458


How can I Draw an ellipse in 3d space and color it by using graph3d?

2142


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

4580


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

3967


Code for Method of Handling Factorials of Any Size?

2014


write a program using virtual function to find the transposing of a square matrix?

2849