Write a function to multiply integers i and j using int pointers as input. Write
ID: 3578441 • Letter: W
Question
Explanation / Answer
5. int multiply(int *a ,int *b)
{
int c;
*a=(*a)* (*b);
cout<<*a;
}
6. int largest(int arr[20])
{
int i,max,index;
max=a[0];index=0;
for(i=1;i<20;i++)
{
if(a[i]>max)
{
max=a[i];
index=i;
}
}
return index;
}
7.int averagee(double dr[])
{
int i,size,avg,sum;
size=sizeof(dr)/sizeof(dr[0]);
for(i=0;i<size;i++)
{
sum=sum+dr[i];
}
avg= sum/size;
return avg;
}
8. void printing(int arrr[])
{
int i,size;
size=sizeof(arrr)/sizeof(arrr[0]);
for(i=0;i<size;i++)
cout<<arrr[i];
}
9. bool check(int a)
{
if(a%11==0)
return true;
else
return false;
}
10. image not so clear. give me the question i will solve it
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.