i have written
void insert(int A[];int &size;int val){
for(int i=0;i<size&&val >[i];i++);
for (int j=size; j>=i+1 ;j--)
A [j] =A [j-1];
A[ i]=A [j-1];
A[i]=val;
size++;}
int main(){
int val;
int index;
cin>>val;
and i don't know how to call the continue to call the function while typing
cout<<insert( )...
User Profile
Collapse
-
to use the arary in a function
hello i am a student studying computer sciences ,i am facing problem in solving some programms becuse it is all verry new to mee so :i have to write a program in which i have to enter an array but it has to be given by reference fuction and to be able to insert a number to the array ,to delete a number .
the problem that i don't know how to write in a function ,but i know how to write normal way and how to call it when i want to execute the...
No activity results to display
Show More
Leave a comment: