...
September 30, 2023

Programming-for-Output-Problems

Question 18 The output of the following code is: int main() { static int x[ ]={1,2,3,4,5,6,7,8} int i; for(i=2;i<6;++i) x[x[i]]=x[i]; for(i=0;i<8;++i) printf(“%d”,x[i]); Return 0; } A […]
September 30, 2023

Data-Structures

Question 1 Let P be a singly linked list. Let Q be the pointer to an intermediate node x in the list. What is the worst-case […]
October 1, 2023

Algorithms

Question 1 An array of integers of size n can be converted into a heap by adjusting the heaps rooted at each internal node of the […]
error: Alert: Content selection is disabled!!