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

my name is nani i completed my b-tech in hyd now i want go for interveiw but i dont know the process of software field interveiws plz help me anyone how many rouds there n what rounds plz plz plz help me n where i can get these details

2 Answers  


What is the difference between typeof(foo) and myFoo.GetType()?

2 Answers   Synergy,


What do you mean by recursion in c?

0 Answers  


main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

7 Answers   Ramco,


How do you view the path?

0 Answers  


What are enumerated types?

0 Answers  


print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20

8 Answers   TCS,


What are the types of type specifiers?

0 Answers  


Difference between fopen() and open()?

3 Answers   Aricent,


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0

1 Answers  


You are given a string which contains some special characters. You also have set of special characters. You are given other string (call it as pattern string). Your job is to write a program to replace each special characters in given string by pattern string. You are not allowed to create new resulting string. You need to allocate some new memory to given existing string but constraint is you can only allocate memory one time. Allocate memory exactly what you need not more not less.

2 Answers   Microsoft,


Categories