السلام عليكم لديا مجموعة اسئلة ارجو منكم مساعدتي في حلهاااااااااااا رجاءا ....
ارجو سرعة بالاجابة لان لديا امتحان قريبااااااااااااا
1-Write a recursive function to compute xn, called Power(x,n).
2-Write a recursive function, Mut(m,n), to multiply m by n using only repeated addition.
3-Write a recursive function to reverse a string.
4-Write a recursive function to return the length of a linked list.
5-Find a function of your own where it has a single loop. rewrite the function using recursion.
6-What does the following do:
void PD(int d){printf(“%c”,(char)((int)’0’+d));}
void P(int n){
if(n<10) PD(n);
else{
P(n/10);
PD(n%10);
}
}
