I do some part time teaching. I assure you I am not perfect. Nor are you. So given these details it not already reasonable enough to assume that your teacher is capable of making mistakes?
lol! I just had a hilarious idea that is kind of inspired by King Mir.
Dysfunctionally correct...
Now everyone gets to be right :)Code:#include <stdio.h>
#define void int
int a(int n,int count){
int i;
for(i=0;i<n;i++)
count =a(i,count);
return count+1;
}
int b(int n,int count) {
int i;
count =a(n,count);
for(i=0;i<n;i++)
count =b(i,count);
return count;
}
void main (){
int i;
for (i=0;i<4;i++)
printf("%d",a(i,0));
printf("\n%d\n",a(i,10));
for (i=0;i<4;i++)
printf("%d",b(i,0));
printf("\n%d\n",b(i,10));
}