Recent questions in Programming and DS

0 votes
0 answers
361
Can we use queue and stack in single array.... If yes the what will will be the overflow and underflow condition
0 votes
0 answers
362
#include<stdio.h>main(){short int i = 20;char c = 97;printf("%d, %d, %d \n", sizeof(c+1), sizeof(c+1.0), sizeof(c+i));return 0;}What is the output?
6 votes
4 answers
365
5 votes
3 answers
367
4 votes
3 answers
368
0 votes
0 answers
371
problem : You are climbing a staircase. It takes n steps to reach the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?...
0 votes
0 answers
372
1 votes
1 answer
373
Suppose we have a 32-bit memory and we have to representunsigned int a = -5What will the memory representation look like?000000…….1011or 111…..1011
0 votes
1 answer
374
Kindly help
0 votes
1 answer
375
Kindly Help