Related Programming & Data Structures PYQs
Consider this C code to swap two integers and these five statements: ```c void swap(int *px, int *py) { *px = *px - *py; *…
Consider the following C-function in which a[n] and b[m] are two sorted integer arrays and c[n+m] be another integer array. ```c v…
An implementation of a queue Q using two stacks S1 and S2 is given below: ```text void insert(Q, x) { push(S1, x); } void de…
Suppose the elements 7, 2, 10 and 4 are inserted, in that order, into the valid 3-ary max heap [9, 5, 6, 8, 3, 1]. Which one of th…
An array A[1..10, 1..20] is stored in row-major order with base address 1000. If each element occupies 4 bytes of memory, what is …
If an integer array arr[10] is defined in C, what does the expression 'arr' represent when used in pointer arithmetic?
Free account benefits
Turn practice into measurable progress
Public PYQs and reference pages stay free. Sign in when you want GATEverse to remember what you studied and guide what to practise next.