Answers for "find last element of an array c++"

C++
7

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];
Posted by: Guest on October-25-2020

Code answers related to "find last element of an array c++"

Browse Popular Code Answers by Language