0 votes
1 answer
2
How many gate delays are there in overflow for ripple carry adder?
0 votes
2 answers
3
#include<stdio.h void print(int n) { if (n 4000) return; printf("%d ", n); print(2*n); printf("%d ", n); } int main() { print(10); getcha...
0 votes
0 answers
4
What does fun2() do in general?int fun(int x, int y){ if (y == 0) return 0; return (x + fun(x, y-1));} int fun2(int a, int b){ if (b == 0) return 1; return ...
0 votes
1 answer
5
What does the following function print for n = 25?void fun(int n){ if (n == 0) return; printf("%d", n%2); fun(n/2);}
1 votes
0 answers
6
Consider the following recursive function fun(x, y). What is the value of fun(4, 3)int fun(int x, int y){ if (x == 0) return y; return fun(x - 1, x + y);}