Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Niks55
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Questions by Niks55
0
votes
0
answers
1
circularly double linked list
What's the error in the following code? My output is always coming as printf("enter 1 to create a list\n"); printf("enter 2 to display the list\n"); printf("enter 3 to insert an element\n"); printf("enter the option\ ... display(start); break; case3:insert(start); break; } } while(option!=1||option!=2||option!=3); return 0; }
What's the error in the following code? My output is always coming as printf("enter 1 to create a list\n"); printf("enter 2 to display the list\n"); ...
366
views
asked
Oct 5, 2018
0
votes
1
answer
2
n bit ripple carry adder
How many gate delays are there in overflow for ripple carry adder?
How many gate delays are there in overflow for ripple carry adder?
1.2k
views
asked
Oct 5, 2018
0
votes
2
answers
3
recursion
#include<stdio.h> void print(int n) { if (n > 4000) return; printf("%d ", n); print(2*n); printf("%d ", n); } int main() { print(10); getchar(); return 0; } PLEASE EXPLAIN THE OUTPUT
#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...
1.4k
views
asked
Oct 2, 2018
0
votes
0
answers
4
recursion
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 fun(a, fun2(a, b-1)); }
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 ...
357
views
asked
Oct 2, 2018
0
votes
1
answer
5
recursion
What does the following function print for n = 25? void fun(int n) { if (n == 0) return; printf("%d", n%2); fun(n/2); }
What does the following function print for n = 25?void fun(int n){ if (n == 0) return; printf("%d", n%2); fun(n/2);}
3.7k
views
asked
Oct 1, 2018
1
votes
0
answers
6
recursion
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); }
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);}
3.6k
views
asked
Oct 1, 2018
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register