0

what is the output?

#include <stdio.h> // Check Examples void quiz(int a); //Compiler version gcc 6.3.0 int main() { printf("Hello, Dcoder!"); quiz(8); return 0; } void quiz(int a) { if(a>1) { quiz(a/2); quiz(a/2); } printf(" *"); }

11th Sep 2019, 11:14 AM
mohamed mahmoud
mohamed mahmoud - avatar
1 ответ
+ 1
Hello, Dcoder! * * * * * * * quiz gets called with these parameters: once with 8 twice with 4 four times with 2
11th Sep 2019, 11:21 AM
Anton Böhler
Anton Böhler - avatar