ShriRam Changed status to publish July 15, 2022
#include<stdio.h>
#include <conio.h>
void main()
{
int arr[100],pos,newvalue;
int i,n;
printf("Enter size of the array : ");
scanf("%d", &n);
printf("\nEnter array Elements now: ");
for(i=0;i<n;i++)
scanf("%d", &arr[i]);
printf("\nEnter Position of Element : ");
scanf("%d", &pos);
printf("\nEnter New Value: ");
scanf("%d", &newvalue);
arr[pos-1]=newvalue;
printf("\nModified Elements Are: ");
for(i=0;i<n;i++)
printf("\n%d", arr[i]);
getch();
}
ShriRam Changed status to publish July 15, 2022