how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
Answer Posted / 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 |
Post New Answer View All Answers
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Explain what standard functions are available to manipulate strings?
What is the right type to use for boolean values in c? Is there a standard type?
What is structure padding and packing in c?
What is volatile variable in c with example?
Does c have circular shift operators?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Why is c called a structured programming language?
What is a far pointer in c?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Where are local variables stored in c?
What is structure in c language?
Explain union.
can we have joblib in a proc ?
What are the 4 types of functions?