Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

Answer / ani

infinite loop, bcoz there is no condition to break the loop.

Is This Answer Correct ?    16 Yes 3 No

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

Answer / guest

infinite coz there is no condition to stop it

Is This Answer Correct ?    11 Yes 4 No

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

Answer / guest

Infinite

Is This Answer Correct ?    7 Yes 3 No

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

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

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

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

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

Answer / rahul

infinite times

Is This Answer Correct ?    4 Yes 3 No

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

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

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

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

how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n"); ..

Answer / viji

It will give a warning message........

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More C Interview Questions

int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

0 Answers  


What is the auto keyword good for?

0 Answers  


If the static variable is declared as global, will it be same as extern?

1 Answers   Samsung,


what is the significance of static storage class specifier?

0 Answers  


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?

6 Answers  


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.

1 Answers  


Why doesnt this code work?

0 Answers  


every function has return the value?

1 Answers  


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

3 Answers   Honeywell, Huawei,


What is an lvalue in c?

0 Answers  


the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38

1 Answers  


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

0 Answers  


Categories