Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Hot questions in Programming and DS
1
votes
1
answer
1711
made-easy-test-series
Consider the following C function: void foo(int n) { while(n!=0) { if(!(n&1)) printf("*"); n=n>>1; } } The number of times printf (“*”) statement is executed, when the value $2^{24}$ is passed to the function foo().
Consider the following C function:void foo(int n) { while(n!=0) { if(!(n&1)) printf("*"); n=n>>1; } }The number of times printf (“*”) statement is executed, when the ...
shweta sah
546
views
shweta sah
asked
Dec 13, 2018
0
votes
0
answers
1712
Made Easy Test Series
Muskan Jain
189
views
Muskan Jain
asked
Jan 7, 2019
0
votes
0
answers
1713
Made easy TS question
The correct answer as you can see is given bellow but I think the condition a[k]>a[max] is wrong instead a[k]<a[max] is correct… someone please check it….!
The correct answer as you can see is given bellow but I think the condition a[k]>a[max] is wronginstead a[k]<a[max] is correct…someone please check it….!
Nandkishor3939
196
views
Nandkishor3939
asked
Jan 7, 2019
3
votes
0
answers
1714
GATEBOOK-DSA4_8
Consider a sorted array A of n integer elements, A[0]...A[n − 1]. A search operation is to be performed on this array using .Binary search algorithm. If the element being searched is in fact the last element of the array, what is the difference between the index of element ... This is my answer.But it matches none of the options. Where I went wrong?
Consider a sorted array A of n integer elements, A[0]...A[n − 1].A search operation is to be performed on this array using .Binary search algorithm. If the element bein...
Ayush Upadhyaya
952
views
Ayush Upadhyaya
asked
Nov 15, 2018
Programming in C
data-structures
binary-search
algorithms
+
–
0
votes
0
answers
1715
uppcl_2018
how the o/p came?
how the o/p came?
SAUMYA2019
197
views
SAUMYA2019
asked
Jan 11, 2019
0
votes
1
answer
1716
Programming C
A possible output of the following program fragment: static char wer [ ] [5] = {“harmot”, “merli”, “axari”); printf ({“%d %d”, wer, wer [0], &wer [0] [0]); is (a) 262164 262165 262166 (b) 2616 262164 262165 (c) 262164 262164 262164 (d) 262164 262165 262165 Solution: ? Please explain it, how it is printed
A possible output of the following program fragment: static char wer [ ] [5] = {“harmot”, “merli”, “axari”);printf ({“%d %d”, wer, wer [0], &wer [0] [0]);...
sagarkhatri
442
views
sagarkhatri
asked
Dec 23, 2018
0
votes
0
answers
1717
Output of the following C Program
Na462
699
views
Na462
asked
Dec 8, 2018
Programming in C
programming-in-c
output
made-easy-test-series
+
–
–1
votes
1
answer
1718
ME Test series
When searching for a key value 50 in a BST, nodes containing key values 10,30,40,70,90,120.150.175 are traversed in any order . The number of different orders possible in which these key values can occur in search path from the root to the value containing 50 are ________
When searching for a key value 50 in a BST, nodes containing key values 10,30,40,70,90,120.150.175 are traversed in any order . The number of different orders possible in...
Shadan Karim
281
views
Shadan Karim
asked
Dec 31, 2018
0
votes
0
answers
1719
Made Easy DS doubt
IS IT CORRECT…??
IS IT CORRECT…??
Vikas123
430
views
Vikas123
asked
Dec 27, 2018
0
votes
0
answers
1720
ME Test Series
Shadan Karim
499
views
Shadan Karim
asked
Dec 23, 2018
0
votes
0
answers
1721
Self Doubt:Call by name
main() { int ar[5],a=0; ar={4,5,6,0,3} fun(ar[a],ar[ar[a]) } // will the called function be resolved to fun(0,3) at compile time ?? [Code Optimization:Folding]
main(){int ar[5],a=0; ar={4,5,6,0,3}fun(ar[a],ar[ar[a])}// will the called function be resolved to fun(0,3) at compile time ?? [Code Optimization:Folding]
Abhisek Tiwari 4
239
views
Abhisek Tiwari 4
asked
Jan 3, 2019
2
votes
1
answer
1722
#made easy
Stack A has entries a,b,c,d(with a on top).Stack B is empty. An entry popped out of stack A is pushed into stack B. An entry popped out of stack B can only be printed. The no. of possible permutation for printing the elements are __ ? 24 12 21 14 can anybody give a generalized formula with explanation for this ?
Stack A has entries a,b,c,d(with a on top).Stack B is empty.An entry popped out of stack A is pushed into stack B.An entry popped out of stack B can only be printed.The n...
Satbir
257
views
Satbir
asked
Dec 19, 2018
Programming in C
doubt
+
–
0
votes
1
answer
1723
Can one describe it in easy meaning ?
An algorithm performs (log N)1/2 find operations , N insert operations, (log N)1/2 delete operations, and (log N)1/2 decrease-key operations on a set of data items with keys drawn from a linearly ordered set . For ... to achieve the best total asymptotic complexity considering all the operations? Unsorted array Min - heap Sorted array Sorted doubly linked list
An algorithm performs (log N)1/2 find operations , N insert operations, (log N)1/2 delete operations, and (log N)1/2 decrease-key operations on a set of data items with k...
Wanted
362
views
Wanted
asked
Jan 13, 2017
1
votes
3
answers
1724
Made Easy test series DS
The number of binary search trees possible with 12 keys, when keys 1, 2, 3, 4, ........ 12 are inserted into empty Binary Search Tree with condition such that 4 is the root of binary search tree and 8 is immediate right child of 4 are ________.
The number of binary search trees possible with 12 keys, when keys 1, 2, 3, 4, ........ 12 are inserted into empty Binary Search Tree with condition such that 4 is the r...
Sambhrant Maurya
1.6k
views
Sambhrant Maurya
asked
Jul 27, 2018
DS
combinatory
tree
+
–
0
votes
1
answer
1725
No Book
Which of the following data structure is efficient to implement priority queue with basic operation such as insertion, deletion and searching? A) Linked list B) Sorted array C) Heap D) Hash table
Which of the following data structure is efficient to implement priority queue with basic operation such as insertion, deletion and searching?A) Linked listB) Sorted arra...
kavya kamish upadhya
553
views
kavya kamish upadhya
asked
Dec 18, 2018
0
votes
0
answers
1726
ME testseries
Vipin Rai
188
views
Vipin Rai
asked
Jan 5, 2019
0
votes
0
answers
1727
UPPCL AE 2018:59
Consider the following $\text{C}$ program. #include<stdio.h> #define XOR(a, b) (a) ^ (b) void func (int *a, int *b) { *a = XOR (*b, *a); *b = XOR (*a, *b); *a = XOR (*b, *a); } main() { int a = 10, b = 20; func (&a , &b); printf(“%d %d \n”,a,b); } What will be the output of the program? $20 \; 10$ $20 \; 20$ $10 \; 10$ $10 \; 20$
Consider the following $\text{C}$ program.#include<stdio.h #define XOR(a, b) (a) ^ (b) void func (int *a, int *b) { *a = XOR (*b, *a); *b = XOR (*a, *b); *a = XOR (*b, *a...
admin
254
views
admin
asked
Jan 5, 2019
Programming in C
uppcl2018
programming
programming-in-c
output
+
–
0
votes
0
answers
1728
ME-FT
consider the following function secret (). unsigned char secret(unsigned char x,int y) { return ((x & 0x0F)<<y | (x & 0xF0)>>y); } int main() { unsigned char x=100; printf(“ %u”,secret(x,4)); return0; } the output obtained corresponding to the function call secret(100,4) is _
consider the following function secret (). unsigned char secret(unsigned char x,int y) { return ((x & 0x0F)<<y | (x & 0xF0)>>y); } int main() { unsigned char x=100; ...
Prateek Raghuvanshi
444
views
Prateek Raghuvanshi
asked
Dec 23, 2018
Programming in C
programming-in-c
+
–
2
votes
0
answers
1729
MadeEasy Subject Test 2019: Programming & DS - Stack
I THING THERE IS MISTAKE BECAUSE BRACKET ARE CLOSING AFTER ELEMENT E SO ALL OPERATORS HOULD BE POPED AND AND ACCORDING TO ME ANWER SHOLD BE 2… TRY AND CORRECT IF I M WRONG !!!! THANKS IN ADVANCE!!!
I THING THERE IS MISTAKE BECAUSE BRACKET ARE CLOSING AFTER ELEMENT E SO ALL OPERATORS HOULD BE POPED AND AND ACCORDING TO ME ANWER SHOLD BE 2…TRY AND CORRECT IF I M WR...
CHïntän ÞäTël
458
views
CHïntän ÞäTël
asked
Dec 7, 2018
Programming in C
made-easy-test-series
data-structures
stack
infix-prefix
+
–
1
votes
0
answers
1730
Please tell me the logic for x = 3 > 2 > 1;
What is the logic behind this code. #include <stdio.h> void main() { int x; x = 3 > 2 > 1; printf("%d", x); return; }
What is the logic behind this code.#include <stdio.h void main() { int x; x = 3 2 1; printf("%d", x); return; }
`JEET
299
views
`JEET
asked
Dec 26, 2018
Page:
« prev
1
...
81
82
83
84
85
86
87
88
89
90
91
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register