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

Answer Posted / guest

infinite coz there is no condition to stop it

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2222


How can I insert or delete a line (or record) in the middle of a file?

575


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

718


Explain how do you list a file’s date and time?

621


What is data structure in c and its types?

596






Is python a c language?

552


What are compound statements?

629


What is d'n in c?

636


Are pointers integers in c?

611


What are the types of operators in c?

612


What is the use of a ‘’ character?

586


What is #define?

576


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

677


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

563


Is c procedural or object oriented?

580