Bir yakinim tek ders sınavına girmesine rağmen bu dersten çaktı.
Hocada ödevlerle falan arkadaşı süründürmekte.

Hayrına bu soru(ları) çözecek insanlar aranmakta.
Sevabı bol...

1) write a function that takes an integer array and the size of the array and then returns the average of the elements by reference parameter.

2) a) write a recursive function named division() that takes two integers and returns quotient (of the first argument divided by second one) with return statement.

3) a) write a function that takes a 2-D integer array and an integer N and then sends back sum of the first N rows by pointer parameter and product of the first N columns by reference parameter.

b) write a function takes two strings and then compares them. the function returns true if the strings are equal, or false otherwise.

4) write a recursive function, named Factorial(), that takes an integer and then returns its factorial.

 

4)
int Factorial(int number)
{
if(number == 0 || number == 1)
return (1);
else
return (number * Factorial(number - 1));
}

lemmiwinks

3)
#include <string.h>
bool Compare(char* s1, char* s2)
{
if(strcmp(s1, s2)==0)
return true;
else
return false;
}

inheritance

1)
void Average (int list[],int size,float* average)
{
float sum = 0;
for (int i=0; i<size; i++)
{
sum += list[i];
}
*average = sum/size;
}

long live rock n roll
1

mobil görünümden çık