Home Modern › Forums › ISRO › Study the following program: Which of the following is printed as a result of the call demo(1234)? (A) 1441 Study the following program: Which of the following is printed as a result of the call demo(1234)? (A) 1441//precondition: x>=0public void demo(int x){System.out.print(x % 10);if (x % 10 != 0){demo(x/10);}System.out.print(x%10);}
(B) 3443
(C) 12344321
(D) 43211234//precondition: x>=0public void demo(int x){System.out.print(x % 10);if (x % 10 != 0){demo(x/10);}System.out.print(x%10);}
(B) 3443
(C) 12344321
(D) 43211234
nan