Skip to content
Dr Jack HW Helper
Home
Browse
About
Contact
Academic Integrity
T
Academic Integrity:
tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.
Home
Browse
#
// recursive power , compute xn int exp(int x, int n){ if(n==_______) return ___
// recursive power , compute xn int exp(int x, int n){ if(n==_______) return ___
ID:
3654947
• Letter:
#
Question
// recursive power , compute xn int exp(int x, int n){ if(n==_______) return _________; return ____________*exp(_________); } void main(){ int a,b; cin >>a>>b; cout<<endl<<exp(a,b)<<endl; } // recursive print of a string void print(char* s){ if(*s==____________) return; cout<<*s; print(______________); } void main(){ char a[6]="hello"; print(a); } // recursive reverse print of a string void rev_print(char* s){ if(*s==____________) return; ____________________________; ___________________________; } void main(){ char a[100]; cin>>a; rev_print(a); }6 // recursive reverse print of an integer void rev_print(int n){ if(n/10==0){ cout<<n; return; } cout<<__________________________; rev_print(___________________); } void main(){ int a; cin>>a; rev_print(a); } // recursive print of an integer void print(int n){ if(n/10==0){ cout<<n; return; } print(_______________); cout<<___________________; } void main(){ int a; cin>>a; print(a); }
Explanation / Answer
void rev_print(char* s){ if(*s=='') return; rev_print(s+1); cout
Related Questions
// data declarations (inputs, outputs, and constants) // data initializations (f
Question #3678252
// data member for Citizen Name 1: Name //data member for Citizen Nationality 2:
Question #3618552
// done. public interface SortableObject { public abstract double getSortValue()
Question #3655775
// each time you restart the game the password must change. Chapter 4, PP 3 Java
Question #3844281
// east facing red light connected to PB5 // east facing yellow light connected
Question #3349235
// enumerate the different combinations // for select k objects from the set of
Question #3702273
// even.cpp // Determine whether inputs are odd or even. #include <iostream> usi
Question #3627065
// file : recursive.cpp // author: ... // desc. : this file contains the entry p
Question #3678156
Navigate
Browse (All)
Browse #
Subjects
Previous
// pointers showing address and values in an array // This program shows the val
Next
// return the passcode public String getPasscode(){ //Random rnd = new Random();