(Solved):
Given the following recursive function: public static void fun(int \( \mathrm{x}) \) \{ \( \quad \ ...
Given the following recursive function: public static void fun(int \( \mathrm{x}) \) \{ \( \quad \) int \( \mathrm{y} ; \) if \( (\mathrm{x}>0) \) \{ \( \mathrm{y}=\mathrm{x} \div 2 ; \) \( \mathrm{x}=\mathrm{x} / 2 ; \) fun \( (\mathrm{x}) ; \) System.out.print(y); \}//end of if \}//end of method What is the output of fun ( 6\( ) ? \) ( 2 marks) A. 011 B. 110 C. 0 D. 11