Free C/C++ programs with output, C++, Programs C Programming Language, Object Oriented Programming (OOPs), C/C++ Programs Codes, C/C++ Program Shortcuts, History of C/C++ programming Language, C/C++ Programming Compilers……..!
void deletion(int pos,int currsize,int item) { item=A[pos]; for(int i=pos;i<currsize-1;i++) A[i]=A[i+1]; currsize--; cout<<"updated array"<<endl; for(int i=0;i<=currsize;i++) cout<<"element at position "<<i+1<<" is "<<A[i]<<endl; } //output is not coming correctly
void deletion(int pos,int currsize,int item)
ReplyDelete{
item=A[pos];
for(int i=pos;i<currsize-1;i++)
A[i]=A[i+1];
currsize--;
cout<<"updated array"<<endl;
for(int i=0;i<=currsize;i++)
cout<<"element at position "<<i+1<<" is "<<A[i]<<endl;
} //output is not coming correctly