Most viewed questions in Programming and DS

1 votes
1 answer
2102
How many times made easy is printed?#include <stdio.h>int main() { c(4);return 0;}int c(int m){ if (m>0){ for(int i=1;i<3;i++){ c(m-i); ...
2 votes
2 answers
2103
#include <stdio.h int main(void) { int a=5, b=10; printf("%d%d",a,b); make_it(b,a,a+b); printf("%d%d",a,b); return 0; } int make_it(int x,int y, int z){ x*=y+z; y=x<<1; z...
0 votes
0 answers
2105
#includeint main(){ int x;char *ptr;x=622,100,101;printf("%d",(*(char *)&x)*(x%3));return 0; }In this question what is the meaning of “ *(char *)&x “ ? please ...
1 votes
0 answers
2107
What item is at root after the following sequence of insertions into an empty splay tree1,11,3,10,8, 4,6,5,7,9,2A)1 B)2 C) 4 D)8
0 votes
1 answer
2108
Find the address of the position [10, 11, 12] of array A in column major order? Given Dimension is A[1:10, -5:15, -10:15], w is two word count, and Base address is 200.
1 votes
1 answer
2109
The minimum number of stacks needed to implement a queue is$3$$1$$2$$4$
1 votes
1 answer
2110
0 votes
1 answer
2111
Given an sorted array in descending order, what will be the time complexity to delete the minimum element from this array?
–2 votes
0 answers
2113
3 votes
2 answers
2114
#include<stdio.h>void main(){ char arr[]=”\0”; if(printf(“%s\n”,arr)) printf(“Nothing\n”); else printf(“Something\n”);} What is the output of...
1 votes
2 answers
2115
#include<stdio.h>int main(){ int a = {1, 2}; void *ptr = &a; ptr = ptr + sizeof(int); printf("%d", *(int *)ptr); return 0;}what will be output ... explain...
1 votes
1 answer
2116
which is an efficient tree structure in terms of space and time complexity?a) AVL Treeb)Full Binary treec)Complete binary treed)Binary tree
0 votes
1 answer
2117
plz explain this code??main(){char *p="hai friends",*p1;p1=p;while(*p!='\0') ++*p++;printf("%s %s",p,p1);}
0 votes
2 answers
2118
we can subtract 2 pointer address then why we can't perform operations like addition, multiplication or division on pointer address???any specific reason?
2 votes
0 answers
2120
Consider the following routine on binary treevoid do(struct btnode *t) { if(t) { Do(t->Rightchild); Do(t->Leftchild); swap(t->Rightchild,t->Leftchild); } }1) What does Do...