Computer Science, asked by kfuzail321, 9 months ago

Question 3:
[5]
Write a program to input an array Arr[ l, of size 25 and PRINT the SUM of all the
elements from SECOND POSITION elements to SECOND LAST ELEMENTS of the array.

Answers

Answered by sjshah0603
0

Answer:

Explanation:

Super easy. Just divide the number of allocated bytes by the number of bytes of the array's data type using sizeof() . E.g. Now the count will be having the count of number of array elements which are entered.

PLEASE MARK ME AS BRAINLIEST

Answered by srajfaroquee
1

Answer:

int main() {

   int arr[25] ;

   int sum= 0;

   for(int i= 1 ; i<25-1 ; i++ ){

       sum += arr[i] ;

   }

   cout<<"The sum of array is " <<sum ;

return 0 ;

}

Similar questions