Question: B=4 C programming 1 - void print(int a[],int b){ for(int i=0;i printf(%d ,a[i]); } printf( b=%d ,b); } 2 - void function1(int a[],int b){ a[b]=a[b]+b;

B=4
C programming
1 - void print(int a[],int b){
for(int i=0;i
printf("%d ",a[i]);
}
printf(" b=%d ",b);
}
2 - void function1(int a[],int b){
a[b]=a[b]+b;
b=b+2;
}
void function2(int a[],int *b){
a[*b]=a[*b]-*b;
*b=a[*b];
}
3 - void print(int a[],int b){
for(int i=0;i
printf("%d ",a[i]);
}
printf(" b=%d ",b);
}
void function1(int a[],int b){
a[b]=a[b]+b;
b=b+2;
}
void function2(int a[],int *b){
a[*b]=a[*b]-*b;
*b=a[*b];
}
B=4C programming 1 - void print(int a[],int b){for(int i=0;i printf("%d ",a[i]); }
2) Let array a be (5,4,9,8,7,3,1,2,0.6) and b be the last digit of your student number. Accordingly, if we run the given functions in the following order, what will be the output? Explain step by step. function(a,b); print (a,b); function2 (a, & b); print (a,b); void printint a[].int b){ for(int i-0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!