What is the output of the following for loop ?
for(int i=0;i<10; )
Program will print 0 infinite times.
Program will give stackoverflow exception after printing 0 for few times.
None of the above.
During program execution time all local variables are stored in Stack memory of RAM, after executing for-loop for some time the available stack memory will be filled and hence program given StackOveflow exception.
Back To Top