Highest voted questions in Programming and DS

1 votes
1 answer
1981
1 votes
1 answer
1982
What will be the output of the following C code?#include<stdio.h int main() { int array[4] = {1, 2, 3, 4}; printf("%d\n", *array + array[0] + *array+1 + array[array ]); }...
1 votes
1 answer
1984
1 votes
1 answer
1985
The data structures most suitable to do an inorder and level order traversals of a binary tree respectively areStack and QueueQueue and StackStack and StackQueue and Queu...
1 votes
1 answer
1986
1 votes
1 answer
1988
What is the location of parent node for any arbitrary node $i$ in an array implementation of a complete binary tree in C language?floor$(i /2)$floor$(i+1) /2$floor$((i-1)...
1 votes
1 answer
1990
Given an array of elements $5,7,9,1,3,10,8,4,$ which of the following is not a possible array implementation of min-heap of these elements?$1,3,4,7,5,8,9,10$$1,4,3,8,9,5,...
1 votes
1 answer
1992
1 votes
2 answers
1994
In a circularly linked list organization, insertion of a record involves the modification ofno pointer$1$ pointer$2$ pointers$3$ pointers
1 votes
3 answers
1995
In C programming language, if the first and the second operands of operator $+$ are of types int and float, respectively, the result will be of type intfloatcharlong int
1 votes
1 answer
1996
What will be the value of $x$ and $y$ after execution of the following statement(C language) n = 5; x = n++; y = -x;$5,-4$$6,-5$$6,-6$$5,-5$
1 votes
2 answers
1998
1 votes
2 answers
1999
If queue is implemented using arrays, what would be the worst run time complexity of queue and dequeue operations?$O(n),O(n)$$O(n),O(1)$$O(1),O(n)$$O(1),O(1)$