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(" *"); }
1 Resposta
+ 1
Hello, Dcoder!
*
*
*
*
*
*
*
quiz gets called with these parameters:
once with 8
twice with 4
four times with 2