include <stdio.h>
int main() {
int array[5] = {10, 20, 30, 40, 50}; // Original array
// Change the last element to 6
array[4] = 6;
// Print the last element
printf("The last element is: %d\n", array[4]);
return 0;
}
include <stdio.h>
int main() {
int array[5] = {10, 20, 30, 40, 50}; // Original array
// Change the last element to 6
array[4] = 6;
// Print the last element
printf("The last element is: %d\n", array[4]);
return 0;
}