September 30, 2023Programming-for-Output-ProblemsQuestion 27 If n has 3, then the statement a[++n]=n++; A assigns 3 to a[5] B assigns 4 to a[5] C assigns 4 to a[4] D […]
September 30, 2023Programming-for-Output-ProblemsQuestion 8 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, 2023Data-StructuresQuestion 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, 2023AlgorithmsQuestion 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 […]