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
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
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
Math,
4 months ago
Math,
4 months ago
Math,
9 months ago
Business Studies,
1 year ago
Chemistry,
1 year ago