edited by
523 views
1 votes
1 votes
Consider the following program:

void ME(int n)

{

          printf(“*”);

          if(n>1)

          {

                    ME(n/4);

                    ME(n/4);

                    ME(n/4);

                    ME(n/4);

          }

}

lets X be the number of asterisks printed by the above function when n=1024. Then the value of X will be___________.

(Hint: take n as a power of 4)
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
BOB asked Dec 17, 2018
331 views
Consider the integer array A[1…...100, 1…...100] in which the elements are stored in Z representation. If the base address of A is starting from 1000 onwards, size of...