#include <stdio.h>
#include <stdlib.h>
void main()
{
int a[400],n,i;
printf("enter the no of elements: ");
scanf("%d",&n);
printf("enter the no: ");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
n=n+1;
printf("enter the no: ");
scanf("%d",a[n]);
for(i=0;i<n;i++)
{
printf("%d",a[i]);
}
}
i inserted elements after that i again inserted its not working.it shows 0 errors but it gets inserted when i try to display compiler stops working see the figure below
rithish 13 Junior Poster in Training
sfuo 111 Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.