engineering recuitment GATE CSE 2023-24 Test Series Programming and Data Structure Programming in C Function Recursion
The output of the following execution of C program is ____.
#include
int Testbook(int);
int main()
{
static int sum = 0;
int j = 0;
for (; j < 12; j++) {
sum = sum + Testbook(j);
}
printf ("%d\n", sum);
}
int Testbook(int t)
{
static int total = 0;
while (t) {
total += t & 1;
t >>= 2;
}
return total;
}
Enter numerical value using the virtual keypad. Round off where necessary.