使用C语言在数组中插入元素

#include
int main(){
int student[40],pos,i,size,value;
printf(“enter no of elements in array of students:”);
scanf(“%d”,&size);
printf(“enter %d elements are:

“,size);
for(i=0;i=pos-1;i–)
student[i+1]=student[i];
student[pos-1]= value;
printf(“final array after inserting the value is

“);
for(i=0;i

上一篇 在C语言中,Realloc是什么意思?
下一篇 C# 中的扩展提供程序组件是什么?