Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

find last element of an array c++

int arr={1,2,3,4,5,6};
int length=sizeof(arr)/sizeof(int);
int lastElement=aar[length-1];
 
PREVIOUS NEXT
Tagged: #find #element #array
ADD COMMENT
Topic
Name
1+5 =