how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
Answers were Sorted based on User's Feedback
Answer / ani
infinite loop, bcoz there is no condition to break the loop.
| Is This Answer Correct ? | 16 Yes | 3 No |
Answer / vignesh1988i
this will give an warning message .....
it will print the "Hi" infinite times...... since we used
assignment opeartor in the termination condition of the
looping statement....
when i is initilized to 0 first.. again i=10 is been
initilized to 10... so however i is been incremented by 2 or
by n times.... i=10.. which will be an non zero value.... so
it wont come out of the loop.... infered as infinite running.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / pradeep
infinite loop becouse ther is no condition given there.
absence of condition it will be printing hi infinite time
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / altaf khan
it will give an error becoz in place of condition it is given a statement which does not returns boolean value
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / sai
It doesn't has condition in the loop to move on, and here i
is of type what?, not mentioned.
This loop doesn't executes with this condition, it should
be told i<= or i>= depending on the requirement.
| Is This Answer Correct ? | 1 Yes | 1 No |
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is the auto keyword good for?
If the static variable is declared as global, will it be same as extern?
what is the significance of static storage class specifier?
Is main() is used in the program,,see below example? void main() { int i; for(i=0;i<10;i++) main(); } Then what is the output of the program?
do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.
Why doesnt this code work?
every function has return the value?
how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com
What is an lvalue in c?
the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +