Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array traversal backward

//in javascript
for(let i=arr.length-1;i>=0;i--)
{
	console.log(arr[i]);
}
//in c++
for(int i=0;i<n;i++)
{
	cout<<arr[i];
}
 
PREVIOUS NEXT
Tagged: #array #traversal
ADD COMMENT
Topic
Name
5+1 =