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
Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?
i don't know about working of nested for loop can any one help me
how to diplay a external image of output on winxp by using c & c++,
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 program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
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)
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
how to write a program that opens a file and display in reverse order?
Create a program to read two random data set in two files named data1.txt and data2.txt manifold contains integer numbers, whereas data2.txt file contains the float type numbers. Simpanlahmasing each into 2 pieces of data that is an array of type integer array and an array of type float, then calculate the average numbers in the second array.
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
write a program that reverses the input number of n.Formulate an equation to come up with the answer.
U hv to enter a range from a and b and search hw many no. of times a pattern n. occurs between the range a and b. Eg :i/p:enter range :0 100 Enter pattern: 13 o/p: the no. times 13 occurred betwwn 0 to 100:1 Eg :i/p:enter range :100 1000 Enter pattern: 13 o/p: the no. times 13 occurred betwwn 100 to 1000: (in this 13,113,131,132,133…139,213,313,…913 all these will be counted)
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+……………...
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 program that can LOCATE and INSERT elements in array using c++ programming languages.