TableScan Turbo Forums  

Go Back   TableScan Turbo Forums > General Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2018, 01:23 AM
Randy Randy is offline
Senior Member
 
Join Date: Aug 2016
Posts: 137
Default Why are arrays usually processed with for loop?

Hello folks,

Why are arrays usually processed with for loop ??
Reply With Quote
  #2  
Old 04-19-2018, 04:45 AM
Lokesh Lokesh is offline
Senior Member
 
Join Date: Jun 2016
Posts: 115
Default

The real power of arrays comes from their facility of using an index variable to traverse the array, accessing each element with the same expression a[i]. All the is needed to make this work is a iterated statement in which the variable i serves as a counter, incrementing from 0 to a.length -1. That is exactly what a loop does.
Reply With Quote
  #3  
Old 02-05-2020, 02:25 AM
sonikathakur sonikathakur is offline
Junior Member
 
Join Date: May 2016
Posts: 7
Default

It is bassically using for traversing the index of array thats The Real power of arrays , Accessing each element with the same expression a[i]. All the is needed to make this work is a iterated statement in which the variable a[i] serves as a counter, incrementing from 0 to a.length -1.


Birthday Party Venues in Indirapuram | Kids Birthday Party Venues in Ghaziabad
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:34 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.