int f(int x) {
if (x <= 0)
return 0;
else
return 1 + f(g(x));
}
int g(int x) {
if (x == 1)
return 0;
else
return 1 + g(x / 2);
}
int main() {
printf("%d", f(1024));
}
Yukarıdaki program çalıştırıldığında ekran çıktısı ne olur?
Cevapla